Javascript Array findItem(value)

Description

Javascript Array findItem(value)


Array.prototype.findItem = function(value){
  var ctr = "";
  for (var i = 0; i < this.length; i++) {

    if (this[i] == value) {
      return true;
    }//from  ww  w .  j  a va2 s.  c  o m
  }
  return false;
};



PreviousNext

Related