Here you can find the source of include(pattern)
/**//from w w w. j a va 2 s . c o m * String#include(substring) -> Boolean * * Checks if the string contains `substring`. * * ##### Example * * 'Prototype framework'.include('frame'); * //-> true * 'Prototype framework'.include('frameset'); * //-> false **/ String.prototype.include = function(pattern) { return this.indexOf(pattern) !== -1; }
String.prototype.include = function(pattern) { return this.indexOf(pattern) > -1; };
String.prototype.include = function (pattern) { return this.indexOf(pattern) > -1;
String.prototype.include = function (pattern) { return this.indexOf(pattern) > -1; enyo.singleton({ name: "preware.Globals", published: { appVersion: "0.2" }); ...
String.prototype.include = function(x){ return this.indexOf(x) > -1
String.prototype.includeString = function (search, start, caseSensitive, eachOther) { 'use strict'; caseSensitive = caseSensitive === void 0 ? false : !!caseSensitive; eachOther = eachOther === void 0 ? false : !!eachOther; if (caseSensitive) { return this.includes(search, start); if (typeof start !== 'number') { start = 0; ...