LINUX.ORG.RU

История изменений

Исправление Ja-Ja-Hey-Ho, (текущая версия) :

И в то же время:

Object.keys({'2': 1, '1': 1,'b': 1, 'a': 1});
["1", "2", "b", "a"]

+ на SO мужик пишет, что:

The order is essentially: integer-like Strings in ascending order, non-integer-like Strings in creation order, Symbols in creation order. Depending which function invokes this, some of these types may not be included.

http://stackoverflow.com/questions/5525795/does-javascript-guarantee-object-property-order/32149345#32149345

Жуть в общем :)

Исходная версия Ja-Ja-Hey-Ho, :

И в то же время:

Object.keys({'2': 1, '1': 1,'b': 1, 'a': 1});
["1", "2", "b", "a"]

+ на SO мужик пишет, что: [qoute]The order is essentially: integer-like Strings in ascending order, non-integer-like Strings in creation order, Symbols in creation order. Depending which function invokes this, some of these types may not be included.

http://stackoverflow.com/questions/5525795/does-javascript-guarantee-object-property-order/32149345#32149345

Жуть в общем :)