+ 2
Why does the thisArg return undefined (proxy apply handler) JavaScript
3 Answers
+ 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