Javascript String contains(s)

Description

Javascript String contains(s)



String.prototype.contains = function(s)
{
return (this.indexOf(s)!=-1);
}

Javascript String contains(s)

String.prototype.contains = function(s) {
  return this.indexOf(s) >= 0;
};



PreviousNext

Related