Hacker News new | past | comments | ask | show | jobs | submit login

Symbols + Maps have some neat gotchas that are good to be aware of.

For example, if you use Symbols as keys in an object, Object.keys() or for...of/in will NOT return/iterate over those keys. You have to use Object.getOwnPropetySymbols()...




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

Search: