the object which should be wrapped.
the proxy.
let src = {x: 1};
let proxy = {
y: 2
};
let a = delegate(src, proxy);
a === proxy // -> true
a.y // -> 2
a.x // -> 1
Delegates property access of proxy to given source object.
The proxy.prototype is set to the given source object.
the object which should be wrapped.
a prepared proxy
the proxy.
let src = {x: 1};
let proxy = {
y: 2
};
let a = delegate(src, proxy);
a === proxy // -> true
a.y // -> 2
a.x // -> 1
Generated using TypeDoc
Delegates property access of
proxyto givensourceobject. The proxy.prototype is set to the givensourceobject.