“Yes, I know that theoretically the order of object properties does not matter and should not be relied upon”
I must disagree. For some time now, the order of object properties is well defined by the spec.
1. Numerical keys in ascending order
2. String keys in insertion order
3. Symbol keys in insertion order
Further reading: https://2ality.com/2015/10/property-traversal-order-es6.html
– Jedrzej 2020-08-26 06:41 UTC
Thanks, I didn’t know that!
– mbork 2020-08-31 06:52 UTC