Javascript Array each(eachFn)

Description

Javascript Array each(eachFn)


Array.prototype.each = function(eachFn) {
    for (var i = 0; i < this.length; i++)
        eachFn(this[i]);/*w w  w  .ja  v  a 2 s  .co  m*/
}



PreviousNext

Related