In JavaScript, there are basically two kinds of object iteration: All objects support property enumeration: for (var propName in someObject) { var value = someObject[propName]; } Some objects support the "Array protocol": for (var i=0; i<someObject.length; i++) { var value = someObject[i]; } These both suck. Property enumeration is only really useful for debugging, since chances are the objects wi

