История изменений
Исправление 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.
Жуть в общем :)
Исходная версия 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.
Жуть в общем :)