Return true when key is safe to use as a plain-object property.
Rejects __proto__, constructor, and prototype to avoid prototype
pollution when indexing untrusted topic/actor/procedure strings.
Parameters
key: string
The key to validate
Returns boolean
true if the key is safe to use as an object property
Return
truewhenkeyis safe to use as a plain-object property. Rejects__proto__,constructor, andprototypeto avoid prototype pollution when indexing untrusted topic/actor/procedure strings.