Configring node js.
This commit is contained in:
8
node_modules/core-js/modules/_string-context.js
generated
vendored
Normal file
8
node_modules/core-js/modules/_string-context.js
generated
vendored
Normal file
@@ -0,0 +1,8 @@
|
||||
// helper for String#{startsWith, endsWith, includes}
|
||||
var isRegExp = require('./_is-regexp')
|
||||
, defined = require('./_defined');
|
||||
|
||||
module.exports = function(that, searchString, NAME){
|
||||
if(isRegExp(searchString))throw TypeError('String#' + NAME + " doesn't accept regex!");
|
||||
return String(defined(that));
|
||||
};
|
||||
Reference in New Issue
Block a user