Javascript String contains(pattern)

Description

Javascript String contains(pattern)

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



PreviousNext

Related