How is for...in implemented in JavaScript? <p>I saw a question about the <a href="http://daniel.gredler.net/2008/09/10/javascript-iteration-order/" rel="nofollow">iteration order</a> of for...in statements, and warning that the order cannot be trusted. How is the iteration and tracking of the current and visited nodes done internally, and how does it differ among JavaScript engines?</p>