Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

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.


Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: