Javascript String has(item)

Description

Javascript String has(item)


String.prototype.has = function (item) {
  return this.indexOf(item) > -1
};



PreviousNext

Related