Glossary Term
Reflect.deleteProperty()
The Reflect.deleteProperty() static method is like the delete operator, but as a function. It deletes a property from an object.
Reflect.deleteProperty() provides the reflective semantic of the delete operator. That is, Reflect.deleteProperty(target, propertyKey) is semantically equivalent to:
At the very low level, deleting a property returns a boolean (as is the case with the proxy handler). Reflect.deleteProperty() directly returns the status, while delete would throw a TypeError in strict mode if the status is false. In non-strict mode, delete and Reflect.deleteProperty() have the same behavior.
Reflect.deleteProperty() invokes the [[Delete]] object internal method of target.
Syntax example: Reflect.deleteProperty(target, propertyKey)
Term Connections
Explore related terms connected by shared tags, shared categories, and relationship phrases. This map loads only when it comes into view.
Loading term connections…
