+ 2
Why does the thisArg return undefined (proxy apply handler) JavaScript
3 Respuestas
+ 1
The second parameter, thisArg, refers to the thisArg of the function when called. Your function, proxy, is not bound to any object. You can call it with thisArg in a number of ways.
proxy.bind({})();
proxy.call({});
proxy.apply({});
Note that Function.prototype.apply has nothing to do with Proxy handler.apply.
Want more explanation on function binding?
https://javascript.info/bind
0
What do you mean by "thisArg" argument?
0
Максим you can check the code