How is `func` created? > typeof func 'function' > func .name '!@#?*'
-
-
Replying to @rauschma
const func = Object.defineProperty(() => {}, 'name', { value: '!@#?*' });
2 replies 0 retweets 13 likes -
Replying to @RReverser @rauschma
This was my first thought too! Alternate approach: class X { static '!@#?*'() {} } const func = X['!@#?*'];
1 reply 0 retweets 1 like
Which shortens to: const func = class { static '!@#?*'() {} }['!@#?*'];
10:32 AM - 9 Oct 2019
0 replies
0 retweets
2 likes
Loading seems to be taking a while.
Twitter may be over capacity or experiencing a momentary hiccup. Try again or visit Twitter Status for more information.
JavaScript, HTML, CSS, HTTP, performance, security, Bash, Unicode, i18n, macOS.