Function has
- has(target, propertyKey): boolean
Parameters
- target: object
Object that contains the property on itself or in its prototype chain.
- propertyKey: PropertyKey
Name of the property.
Returns boolean
- target: object
Object that contains the property on itself or in its prototype chain.
Name of the property.
Equivalent to
propertyKey in target
.