Hacker News new | ask | show | jobs
by pluma 4193 days ago
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.

1 comments

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