Nodejs String Include include(pattern)

Here you can find the source of include(pattern)

Method Source Code

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

Related

  1. include(pattern)
    String.prototype.include = function(pattern) {
      return this.indexOf(pattern) !== -1;
    
  2. include(pattern)
    String.prototype.include = function (pattern) {
      return this.indexOf(pattern) > -1;
    
  3. include(pattern)
    String.prototype.include = function (pattern) {
        return this.indexOf(pattern) > -1;
    enyo.singleton({
        name: "preware.Globals",
        published: {
            appVersion: "0.2"
    });
    ...
    
  4. include(x)
    String.prototype.include = function(x){
      return this.indexOf(x) > -1