Javascript String contains(string, index)

Description

Javascript String contains(string, index)


// String.prototype.contains
String.prototype.contains = function (string, index) {
  return this.indexOf(string, index) !== -1;
};



PreviousNext

Related