Javascript String in(array)

Description

Javascript String in(array)


String.prototype.in = function(array)
{
  for (var i = 0; i < array.length; i++)
  {/* ww w. j  a v  a2s. co  m*/
    if (array[i]==this)
      return true;
  }
  return false;
}



PreviousNext

Related