Maps and sets and insertion order

Axel Rauschmayer axel at
Sun Jan 4 08:55:23 PST 2015

I think it’s great that maps and sets honor insertion order.

Two ideas:

* Sets: Could the keys used for `Set.prototype.entries()` and `Set.prototype.forEach()` be the position of an element? IMO that’d be more useful than using the element as both key and value.

* Maps: Long-term, I’d love to be able to access and delete entries by position.


Dr. Axel Rauschmayer
axel at

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <>

More information about the es-discuss mailing list