Sha256: f6930c40deb436ed4125d28c127afc4b9809789b33e1f5de08d543739a7551a6

Contents?: true

Size: 479 Bytes

Versions: 34

Compression:

Stored size: 479 Bytes

Contents

// 21.1.3.7 String.prototype.includes(searchString, position = 0)
'use strict';
var $export  = require('./$.export')
  , context  = require('./$.string-context')
  , INCLUDES = 'includes';

$export($export.P + $export.F * require('./$.fails-is-regexp')(INCLUDES), 'String', {
  includes: function includes(searchString /*, position = 0 */){
    return !!~context(this, searchString, INCLUDES)
      .indexOf(searchString, arguments.length > 1 ? arguments[1] : undefined);
  }
});

Version data entries

34 entries across 17 versions & 7 rubygems

Version Path
ilog-0.4.1 node_modules/core-js/modules/es6.string.includes.js
ilog-0.4.1 node_modules/core-js/library/modules/es6.string.includes.js
ilog-0.4.0 node_modules/core-js/modules/es6.string.includes.js
ilog-0.4.0 node_modules/core-js/library/modules/es6.string.includes.js
ilog-0.3.3 node_modules/core-js/modules/es6.string.includes.js
ilog-0.3.3 node_modules/core-js/library/modules/es6.string.includes.js
locomotivecms-4.0.0.alpha1 app/javascript/node_modules/fbjs/node_modules/core-js/library/modules/es6.string.includes.js
locomotivecms-4.0.0.alpha1 app/javascript/node_modules/fbjs/node_modules/core-js/modules/es6.string.includes.js
locomotivecms-3.4.0 app/javascript/node_modules/fbjs/node_modules/core-js/library/modules/es6.string.includes.js
locomotivecms-3.4.0 app/javascript/node_modules/fbjs/node_modules/core-js/modules/es6.string.includes.js
cortex-0.1.3 spec/dummy/node_modules/fbjs/node_modules/core-js/library/modules/es6.string.includes.js
cortex-0.1.3 spec/dummy/node_modules/fbjs/node_modules/core-js/modules/es6.string.includes.js
lanes-0.8.0 node_modules/core-js/library/modules/es6.string.includes.js
lanes-0.8.0 node_modules/core-js/modules/es6.string.includes.js
xcodebuild-helper-1.2.5 externals/ios-sim-master/node_modules/core-js/library/modules/es6.string.includes.js
xcodebuild-helper-1.2.5 externals/ios-sim-master/node_modules/core-js/modules/es6.string.includes.js
xcodebuild-helper-1.2.3 externals/ios-sim-master/node_modules/core-js/library/modules/es6.string.includes.js
xcodebuild-helper-1.2.3 externals/ios-sim-master/node_modules/core-js/modules/es6.string.includes.js
babel-schmooze-sprockets-0.1.3 node_modules/core-js/modules/es6.string.includes.js
babel-schmooze-sprockets-0.1.3 node_modules/core-js/library/modules/es6.string.includes.js