Better HN
top
new
best
ask
show
jobs
Log in
Sign up
Better HN
Comment
by
mort96
· 8y ago · 0 comments
AFAIK, that's not true; the spec doesn't guarantee that it iterates in insertion order, it's just how it's commonly implemented in browsers.
Comments
[–]
topaxi
8y ago
Nope, they should be iterated in their defined order:
https://tc39.github.io/ecma262/#sec-ordinaryownpropertykeys
I think they added this with ES2015.