JSFiddle - React, Tailwind, and code Playground
by alexb
JavaScript
let val = 0;
let x = new Proxy(val, {
apply(target, thisArg, args) {
console.log(arguments);
}
});
x(2);
by alexb
let val = 0;
let x = new Proxy(val, {
apply(target, thisArg, args) {
console.log(arguments);
}
});
x(2);