News for hackers. Stuff that matters.
Re:Ways to Invoke a Function in JavaScript by franciscop on Sunday June 18, 2017 @07:38PM (#14583625)
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];

There are no comments on this comment yet.