Why is there no forEach method on Object in ECMAScript 5?
Well, it’s pretty easy to rig up yourself. Why further pollute the prototypes? Object.keys(obj).forEach(function(key) { var value = obj[key]; }); I think a big reason is that the powers that be want to avoid adding built in properties to Object. Objects are the building blocks of everything in Javascript, but are also the generic key/value … Read more