Ordered hash in JavaScript
Posted
by hekevintran
on Stack Overflow
See other posts from Stack Overflow
or by hekevintran
Published on 2010-05-09T19:37:24Z
Indexed on
2010/05/09
19:48 UTC
Read the original article
Hit count: 179
JavaScript
JavaScript objects have no order stored for properties (according to the spec). Firefox seems preserve the order of definition of properties when using a for...in
loop. Is this behaviour something that I can rely on? If not is there a piece of JavaScript code somewhere that implements an ordered hash type?
© Stack Overflow or respective owner