Javascript String includes(substring)

Description

Javascript String includes(substring)


String.prototype.includes = function(substring){
  return this.indexOf(substring) > -1 ? true : false;
}



PreviousNext

Related