Glossary Term
Reflect.set()
The Reflect.set() static method is like the property accessor and assignment syntax, but as a function.
Reflect.set() provides the reflective semantic of a property access. That is, Reflect.set(target, propertyKey, value, receiver) is semantically equivalent to:
Note that in a normal property access, target and receiver would observably be the same object.
Reflect.set() invokes the [[Set]] object internal method of target.
Return value: A Boolean indicating whether or not setting the property was successful.
Parameters: target The target object on which to set the property. propertyKey The name of the property to set. value The value to set. receiver The value of this provided for the call to the setter for propertyKey on target. If provided and target does not have a setter for propertyKey, the property will be set on receiver instead. Defaults to target.
Syntax example: Reflect.set(target, propertyKey, value)
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…
