Given the definition of an object:
var o = {x :1, y:2, z: 3, b: 4, a: 5, m: 6, X: 7};
At enumeration time, Chrome seems to follow the order in which the attributes are defined:
for (var i in o) { console.log(i, o[i]); }
Productivity:
x 1 y 2 z 3 b 4 a 5 m 6 X 7
Does JavaScript and / or JSON indicate this level of preservation?
In any case, is it reliable?
source share