Javascript appending object doesn’t guarantee order

I have looked at this question in stack overflow about objects guaranteeing order. Does JavaScript Guarantee Object Property Order? some says they guarantee, some says they don’t, depending on situations. Meantime I’ve encountered following problem. I have an array of objects, similar to below: const arrayObject = [ {id:’a123′, bar:’hello’}, {id:’a321′, bar: ‘foo’} ]; now…

Details