Javascript Array forEach(fn)
Array.prototype.forEach = function(fn) { for (var i = 0; i < this.length; i++) fn(this[i]); }