As it happensAt the time of writing, most browsers dodid return properties in the same order as they were inserted, but it iswas explicitly not guaranteed behaviour so you should not relyshouldn't have been relied upon it.
In particular see section 12.6.4 of theThe ECMAScript specification used to say:
The mechanics and order of enumerating the properties ... is not specified.
However in ES2015 and later non-integer keys will be returned in insertion order.