@DasSurma (wonder if you might wanna help answer this question) Why did TC39 decide to not give new Map() indexes? https://stackoverflow.com/questions/37822141/how-do-you-get-the-key-at-specifc-index-in-javascript-map-object … Right now we have to loop through the Map to get the index of a key.
-
-
As
@bterlson mentioned: "the specification device uses a List which implies an ordering" e.g. https://www.ecma-international.org/ecma-262/6.0/#sec-set.prototype.add … This isn't implementation detail, this is specified behaviour. -
plus IIUC actually specifying an iteration order was a goal for ES2015 collection types, as it was previously under-specified and inconsistently implemented for vanilla Objects.
- 4 more replies
New conversation -
Loading seems to be taking a while.
Twitter may be over capacity or experiencing a momentary hiccup. Try again or visit Twitter Status for more information.
JavaScript, HTML, CSS, HTTP, performance, security, Bash, Unicode, i18n, macOS.