HN user

spacejunkie

18 karma
Posts1
Comments4
View on HN

It seems that this library relies on hash keys being returned in the same order that they appear in a literal hash constructor. I.e., if var x = { "b":3, "a":10 }, then for (n in x) will _always_ assign n to "b" first before assigning it to "a".

Is this something that is guaranteed by javascript?