5 ms·
Make accessing or setting a property to be an actual function call with Proxy: const log = new Proxy(console.log, { get: (orig, key) => orig(key) }); log[11
by franciscop 9y ago
Make accessing or setting a property to be an actual function call with Proxy:
const log = new Proxy(console.log, {
get: (orig, key) => orig(key)
});
log[11];