I create an object, and then pass on all his keys. It turns out they are ordered! How to avoid it? Is it real?
var obj = { "A": 1, "C": 2, "B": 3 };
for (var key in obj)
{
//receiving in turn A, B and C instead of A, C, B
}
I create an object, and then pass on all his keys. It turns out they are ordered! How to avoid it? Is it real?
var obj = { "A": 1, "C": 2, "B": 3 };
for (var key in obj)
{
//receiving in turn A, B and C instead of A, C, B
}