Message from JavaScript discussions

November 2017

— Do that to ensure read order, then iterate that

— 

For varied data sets you can also apply total order to the elements of the set via some sort of sorting algorithm, and that also helps with deterministic access

— For strings, as an example, you can get total order just via alphabetic sorting order

— Why not use an array of key/value pairs

— Then order is implicit

— If you have control of that data structure, that is...

— 

[
{myKey: myValue},
...
]

or
[
[myKey, myValue],
...
]

— Otherwise, imperative access is probably more readable

— Or, at that rate, you might just be better off using a map

— Since that's what a map is

— Maps are cool

— Are JS maps ordered?