In recent ECMAScript, is it possible to obtain a list of all properties of an object in creation order? There are two issues that i could not find to be exposed by specification. I am asking whether i missed something. Is either possible to obtain?
ascending chronological order of property creation
Is possible to obtain the creation order of integer indexes?
Is possible to obtain the order of integer indexes, symbols and strings between another?
Objects are meant as unordered collections of properties. If you care about order, use an array or a
Map. That an order is specified at all (at least, for some operations in ES6) is only to reflect implementation reality and to improve compatibility between engines.