array.prototype.foreach pollyfill code example Example: mdn foreach arr.forEach(callback(currentValue [, index [, array]])[, thisArg])