JavaScript: Everything is not what it seems

1 points by chadscira ↗ HN

    let EVERYTHING = new Proxy({}, {get: (_, k) => k.toString().match('Symbol\.') ? () => 'OR IS IT?' : EVERYTHING});

    console.log(`${EVERYTHING . IS . NOT . WHAT . IT . SEEMS}`);
Yay proxies?

This is supported in Chrome, and Node.

0 comments

[ 3.1 ms ] story [ 12.5 ms ] thread

No comments yet.