63
rated 0 times
[
67]
[
4]
/ answers: 1 / hits: 54637
/ 6 Years ago, fri, june 29, 2018, 12:00:00
How to access the target (which is myArray
) of myProxy
here?
function createProxy() {
const myArray = [Math.random(), Math.random()];
return new Proxy(myArray, {});
}
const myProxy = createProxy();
More From » ecmascript-6