Skip to main content

destroy

Destroys the specified property in the object.

Signature

destroy(object: {} | undefined, property: string): boolean

Parameters

NameTypeOptionalDescription
object{} | undefinedNoReference to the object.
propertystringNoName of the property.

Return value

Returns true if the property was found and deleted.