Opens in a new tab
A picture of Jeff Brigman
I CODE TODAY FOR
A BETTER TOMORROW

Glossary Term

Reflect.get()

2 tags 1 category

The Reflect.get() static method is like the property accessor syntax, but as a function.

Reflect.get() provides the reflective semantic of a property access. That is, Reflect.get(target, propertyKey, receiver) is semantically equivalent to:

Note that in a normal property access, target and receiver would observably be the same object.

Reflect.get() invokes the [[Get]] object internal method of target.

Parameters: target The target object on which to get the property. propertyKey The name of the property to get. receiver The value of this provided for the call to target if a getter is encountered. Defaults to target.

Syntax example: Reflect.get(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…