Extensible destructuring proposal

Bergi a.d.bergi at web.de
Tue Jul 21 16:56:29 UTC 2015

Domenic Denicola schrieb:
> Well,  the spec says they are ordered, so I'm not sure where you're getting that from.

Yes, the spec defines an order to make iteration predictable and 
consistent, but that doesn't mean anyone would use a `Map` for an 
ordered structure. I would consider

     new Map(Object.entries({a: 1, b: 2}))


     new Map(Object.entries({b: 2, a: 1}))

to be equivalent for all purposes of an algorithm that uses commutative 


More information about the es-discuss mailing list