📘Reflect
JS ⟩ object ⟩ built-in ⟩ Reflect
A built-in object that provides methods for interceptable operations. The methods are the same as those of proxy handlers.
Reflect is not a function object, so it's not constructible❗
the first parameter to all the Reflect methods is called the target parameter.
Reflect.method() | Triggers when… |
---|---|
apply(f, o, args) |
|
construct(C, args, newTarget) |
|
defineProperty(o, key, desc) |
|
deleteProperty(o, key) |
|
get(o, key, receiver) |
|
getOwnPropertyDescriptor(o, key) |
|
| |
has(o, key) |
|
isExtensible(o) |
|
ownKeys(o) |
|
| |
set(o, key, value, receiver) |
|
setPrototypeOf(o, p) |
|
Last updated