3 ms·
> HashSets, HashMaps, TreeMaps etc. As a note, the built-in JS object type is a hash map; although it has the annoying property of requiring keys to be strings
by comex 13y ago
> HashSets, HashMaps, TreeMaps etc.
As a note, the built-in JS object type is a hash map; although it has the annoying property of requiring keys to be strings, it still suffices for most uses of maps and sets.
- BrendanEich 13y agoIndeed. See also JSON. ES6 brings Map, Set, WeakMap, and WeakSet. First three are already prototyped in Firefox and (under a flag) Chrome. /be