Chrome re-ordering object keys if numerics, is that normal/expected

后端 未结 7 1522

I noticed that certain code that evaluates some shoe sizes for an e-commerce site and outputs them on screen is messing up the order in Chrome.

JSON given can be:

7条回答
  •  暗喜
    暗喜 (楼主)
    2020-12-03 07:38

    I don't think you can call this a bug. Like you say yourself, there is no garantee on how the properties of an object are sorted.

提交回复
热议问题