Y
Hacker News
new
|
ask
|
show
|
jobs
by
tomjakubowski
4005 days ago
JavaScript objects can only have string keys (this may have changed in ES2015 with Symbols). If you pass a non-string value in an object literal or inside a []-accessor, that value is converted to a string.