Javascript Array hasValue(v)

Description

Javascript Array hasValue(v)


Array.prototype.hasValue = function(v)
{
  for(var idx in this)
  {//ww  w. j a  v  a 2 s .  com
    if(this[idx] == v)
      return true;
  }
  return false;
};



PreviousNext

Related