A replacement of Array.prototype.forEach that is faster