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}))
and
new Map(Object.entries({b: 2, a: 1}))
to be equivalent for all purposes of an algorithm that uses commutative
operators.
Bergi
_______________________________________________
es-discuss mailing list
[email protected]
https://mail.mozilla.org/listinfo/es-discuss