this Keyword in Different Contexts
What is 'this' in Proxy handlers?
const proxy = new Proxy({}, {
get(target, property) {
console.log(this === proxy);
return target[property];
}
});
const proxy = new Proxy({}, {
get(target, property) {
console.log(this === proxy);
return target[property];
}
});