Better HN
top
new
best
ask
show
jobs
Log in
Sign up
Better HN
Comment
by
thomasfoster96
· 11y ago · 0 comments
Dynamic property names are quite different to Symbols in ECMAScript 6.
Comments
[–]
anustart666
11y ago
Use a global const for keygen, 'symbol' is most likely just a syntactic sugar for global const...
[–]
thomasfoster96
OP
11y ago
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.