Dean Edwards
Company: Dean EdwardsAuthor Bio:
Tutorials written by Dean Edwards:
Enumerating JavaScript Objects
The global forEach function allows us to enumerate any object according to it’s type. If the object is array-like (has a length property) then we enumerate it like an array. All other objects are enumerated using the standard for var x in y mechanism.
Tuesday, 22nd August 2006
