Function deleteProperty
- delete
Property (target, propertyKey): boolean Parameters
- target: object
Object from which to remove the own property.
- propertyKey: PropertyKey
The property name.
Returns boolean
- target: object
Object from which to remove the own property.
The property name.
Removes a property from an object, equivalent to
delete target[propertyKey]
, except it won't throw iftarget[propertyKey]
is non-configurable.