Is string has a substring - Node.js String

Node.js examples for String:sub string

Description

Is string has a substring

Demo Code


String.prototype.has= function(c) {
  return this.indexOf(c) >= 0;
};

Related Tutorials