JavaScripture
Contribute via GitHub Feedback

Proxy : Object

The Proxy allows you to wrap an Object (called the target) and modify the behavior of that Object.

Constructors

new Proxy(target : Object, handler : ProxyHandler) : Proxy

Creates a new Proxy for the target where handler allows you to modify the behavior of target.

Example:

Run

Results:

 

Proxy Methods

revocable(target : Object, handler : Proxyhandler) : Proxy