Javascript Array none(predicate)

Description

Javascript Array none(predicate)

Array.prototype.none = function(predicate){
  for (var i = 0; i < this.length; i++){
    if (predicate(this[i])) {
      return false
    }//ww w.  j  a  v a  2s.c  o m
  }
  return true
}



PreviousNext

Related