Sha256: db504784e2522a764f7d7834ec8e86c7fcbea5b7ca90decda7c50d9a985de78d

Contents?: true

Size: 314 Bytes

Versions: 66

Compression:

Stored size: 314 Bytes

Contents

// helper for String#{startsWith, endsWith, includes}
var isRegExp = require('./_is-regexp');
var defined = require('./_defined');

module.exports = function (that, searchString, NAME) {
  if (isRegExp(searchString)) throw TypeError('String#' + NAME + " doesn't accept regex!");
  return String(defined(that));
};

Version data entries

66 entries across 30 versions & 8 rubygems

Version Path
immosquare-cleaner-0.1.42 node_modules/core-js/library/modules/_string-context.js
immosquare-cleaner-0.1.42 node_modules/core-js/modules/_string-context.js
immosquare-cleaner-0.1.41 node_modules/core-js/modules/_string-context.js
immosquare-cleaner-0.1.41 node_modules/core-js/library/modules/_string-context.js
immosquare-cleaner-0.1.40 node_modules/core-js/library/modules/_string-context.js
immosquare-cleaner-0.1.40 node_modules/core-js/modules/_string-context.js
optimacms-0.1.61 spec/dummy/node_modules/babel-runtime/node_modules/core-js/modules/_string-context.js
optimacms-0.1.61 spec/dummy/node_modules/babel-runtime/node_modules/core-js/library/modules/_string-context.js
ilog-0.4.1 node_modules/babel-register/node_modules/core-js/modules/_string-context.js
ilog-0.4.1 node_modules/babel-runtime/node_modules/core-js/modules/_string-context.js
ilog-0.4.1 node_modules/babel-runtime/node_modules/core-js/library/modules/_string-context.js
ilog-0.4.1 node_modules/babel-register/node_modules/core-js/library/modules/_string-context.js
ilog-0.4.0 node_modules/babel-register/node_modules/core-js/modules/_string-context.js
ilog-0.4.0 node_modules/babel-register/node_modules/core-js/library/modules/_string-context.js
ilog-0.4.0 node_modules/babel-runtime/node_modules/core-js/library/modules/_string-context.js
ilog-0.4.0 node_modules/babel-runtime/node_modules/core-js/modules/_string-context.js
ilog-0.3.3 node_modules/babel-register/node_modules/core-js/library/modules/_string-context.js
ilog-0.3.3 node_modules/babel-runtime/node_modules/core-js/modules/_string-context.js
ilog-0.3.3 node_modules/babel-runtime/node_modules/core-js/library/modules/_string-context.js
ilog-0.3.3 node_modules/babel-register/node_modules/core-js/modules/_string-context.js