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

> While you can use any value as an object property key in JavaScript

Strings and Symbols only. Everything else is converted to a string, which works most of the time for lookups, but can fail depending on the stringification or if you're pulling keys back out of the object.



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

Search: