Re:Airbnb JavaScript Style Guide
by anustart666 on Thursday July 02, 2015 @11:58PM
(#9823366)
Use a global const for keygen, 'symbol' is most likely just a syntactic sugar for global const...
[ Parent
| on HN ]
Re:Airbnb JavaScript Style Guide
by thomasfoster96 on Friday July 03, 2015 @12:05AM
(#9823387)
Well a Symbol is guaranteed to be unique (unless you use the symbol registry) and can't be converted to a string - things that you can't say about a global const that is a string.