.. -*- mode: rst -*-
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"::
...