Maps and sets and insertion order

# Axel Rauschmayer (10 years ago)

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.

Axel