Javascript Array forEvery(x)

Description

Javascript Array forEvery(x)


Array.prototype.forEvery = function(x) {
  var i, result = [];
  for(i=0; i < this.length; i++) {
    result.push( x(this[i]) );//w ww  . j ava  2  s  .  c  o  m
  }
  return result;
}



PreviousNext

Related