Javascript String contains(substring)

Description

Javascript String contains(substring)

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



PreviousNext

Related