3 ms·
Experimental support for ECMAScript 6 Map and Set objects in Firefox 13
- VMG 14y agoDescription of Map: https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Map https://developer.mozilla.org/en/JavaScript/Reference/Global... Set: https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Set https://developer.mozilla.org/en/JavaScript/Reference/Global...
- kevingadd 14y agoThe lack of a way to enumerate a Map/Set or otherwise find out what's in it (like via toString, even) makes them fairly useless containers at present. Unfortunate; I'd like to give them a spin.
- james4k 14y agoYeah, even for an experimental feature, that seems like a massive oversight.
- program 14y agoI really hope that Map and Set will be iterable as described here: http://wiki.ecmascript.org/doku.php?id=harmony:iterators http://wiki.ecmascript.org/doku.php?id=harmony:iterators otherwise, in my opinion, they will be pretty useless. As an addendum it looks like that 'undefined' is a valid key: var m = new Map; m.set(undefined, 1); console.log(m.get(undefined));