+ 2

Why does the thisArg return undefined (proxy apply handler) JavaScript

https://code.sololearn.com/Wmt93xU0aZNx/?ref=app

17th Jan 2021, 6:13 PM
Karak10
Karak10 - avatar
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
19th Jan 2021, 5:06 PM
Ore
Ore - avatar
0
What do you mean by "thisArg" argument?
18th Jan 2021, 7:35 AM
МаĐșŃĐžĐŒ
МаĐșŃĐžĐŒ - avatar
0
МаĐșŃĐžĐŒ you can check the code
18th Jan 2021, 1:10 PM
Karak10
Karak10 - avatar