The Proxy constructor.
new Proxy(target, handler)
target
The target object to wrap with Proxy.
handler
An object whose properties are functions which define the behavior of the proxy when an operation is performed on it.
Handler objects can define the following properties:
Intercepts calls to the proxy when it is used as a function.
Intercepts calls to the proxy when it is used as a constructor.
Intercepts calls to the proxy when a property is defined.
Intercepts calls to the proxy when a property is deleted.
Intercepts calls to the proxy when a property is read.
Intercepts calls to the proxy when a property descriptor is requested.
Intercepts calls to the proxy when the prototype of the target object is requested.
Intercepts calls to the proxy when the in operator is used on the proxy.
Intercepts calls to the proxy when the Object.isExtensible method is called on the proxy.
Intercepts calls to the proxy when the Object.getOwnPropertyNames method is called on the proxy.
Intercepts calls to the proxy when the Object.preventExtensions method is called on the proxy.
Intercepts calls to the proxy when a property is set.
Intercepts calls to the proxy when the Object.setPrototypeOf method is called on the proxy.
A new Proxy object.