Sha256: db504784e2522a764f7d7834ec8e86c7fcbea5b7ca90decda7c50d9a985de78d

Contents?: true

Size: 314 Bytes

Versions: 82

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

82 entries across 38 versions & 8 rubygems

Version Path
immosquare-cleaner-0.1.60 node_modules/core-js/library/modules/_string-context.js
immosquare-cleaner-0.1.60 node_modules/core-js/modules/_string-context.js
immosquare-cleaner-0.1.59 node_modules/core-js/library/modules/_string-context.js
immosquare-cleaner-0.1.59 node_modules/core-js/modules/_string-context.js
immosquare-cleaner-0.1.58 node_modules/core-js/library/modules/_string-context.js
immosquare-cleaner-0.1.58 node_modules/core-js/modules/_string-context.js
immosquare-cleaner-0.1.57 node_modules/core-js/modules/_string-context.js
immosquare-cleaner-0.1.57 node_modules/core-js/library/modules/_string-context.js
immosquare-cleaner-0.1.56 node_modules/core-js/library/modules/_string-context.js
immosquare-cleaner-0.1.56 node_modules/core-js/modules/_string-context.js
immosquare-cleaner-0.1.55 node_modules/core-js/library/modules/_string-context.js
immosquare-cleaner-0.1.55 node_modules/core-js/modules/_string-context.js
immosquare-cleaner-0.1.54 node_modules/core-js/library/modules/_string-context.js
immosquare-cleaner-0.1.54 node_modules/core-js/modules/_string-context.js
immosquare-cleaner-0.1.53 node_modules/core-js/modules/_string-context.js
immosquare-cleaner-0.1.53 node_modules/core-js/library/modules/_string-context.js
immosquare-cleaner-0.1.52 node_modules/core-js/library/modules/_string-context.js
immosquare-cleaner-0.1.52 node_modules/core-js/modules/_string-context.js
immosquare-cleaner-0.1.51 node_modules/core-js/library/modules/_string-context.js
immosquare-cleaner-0.1.51 node_modules/core-js/modules/_string-context.js