I donβt remember where, but once I noticed that this means that for..in loops can go through the elements in any order that can be implemented by the developers, including forward, backward, randomly or alternating back and forth for each execution a for..in . In practice, however, for some reason I do not think that the latter really takes place with any implementation. (Although, there is a certain browser that we know that likes to ruin everything, so you can never be too sure, but I'm distracted.)
My point is that, although in practice the deviation in the for..in sequence is probably not that bad, I would like to know what deviation, if any, exists between ECMAScript implementations. I believe that the main ones will be JScript, Chakra, Futhark, Carakan, JavascriptCore, SquirrelFish, V8, SpiderMonkey and TraceMonkey, for reference only.
source share