Javascript Array forEach(a)

Description

Javascript Array forEach(a)


"use strict"/*from  w  w  w . j a v  a  2 s.  c  om*/

Array.prototype.forEach = function(a) {
  for (let i = 0; i < this.length; i++) a(this[i], i, this)
}



PreviousNext

Related