The #JS utility you never knew you needed 😂 Create multiple Symbols in one go w...

@leaverou@front-end.social

The #JS utility you never knew you needed 😂
Create multiple Symbols in one go with this Proxy-based one liner.

“But aren’t proxies super slow?”

Nah. Depending on the browser it ranges from 50% slower to exactly the same.
Which unless you’re creating millions of symbols, is inconsequential.

jsbenchmark.com/#eyJjYXNlcyI6W