Javascript String contains(a)

Description

Javascript String contains(a)

String.prototype.contains = function (a) {
  if (this.indexOf(a) > -1)
    return true;//  ww  w  .  j a  va 2  s  .  c  om
  else
    return false;
};



PreviousNext

Related