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

Unique (derived) tokens that are not equal to any other value.

For example, symbols let you implement a map data structure without having to worry about shadowing built-in properties of the object.



If you have Symbols, you also have Map and WeakMap which don't have that problem.




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

Search: