destroy
Destroys the specified property in the object.
Signature
destroy(object: {} | undefined, property: string): boolean
Parameters
Name | Type | Optional | Description |
---|---|---|---|
object | {} | undefined | No | Reference to the object. |
property | string | No | Name of the property. |
Return value
Returns true
if the property was found and deleted.