aboutsummaryrefslogtreecommitdiff
path: root/node_modules/core-js/modules/es6.string.starts-with.js
diff options
context:
space:
mode:
authorFlorian Dold <florian.dold@gmail.com>2017-05-27 17:36:13 +0200
committerFlorian Dold <florian.dold@gmail.com>2017-05-27 17:36:13 +0200
commit5f466137ad6ac596600e3ff53c9b786815398445 (patch)
treef914c221874f0b16bf3def7ac01d59d1a99a3b0b /node_modules/core-js/modules/es6.string.starts-with.js
parentc9f5ac8e763eda19aa0564179300cfff76785435 (diff)
downloadwallet-core-5f466137ad6ac596600e3ff53c9b786815398445.tar.xz
node_modules, clean up package.json
Diffstat (limited to 'node_modules/core-js/modules/es6.string.starts-with.js')
-rw-r--r--node_modules/core-js/modules/es6.string.starts-with.js11
1 files changed, 5 insertions, 6 deletions
diff --git a/node_modules/core-js/modules/es6.string.starts-with.js b/node_modules/core-js/modules/es6.string.starts-with.js
index 21143072e..017805f01 100644
--- a/node_modules/core-js/modules/es6.string.starts-with.js
+++ b/node_modules/core-js/modules/es6.string.starts-with.js
@@ -1,16 +1,15 @@
// 21.1.3.18 String.prototype.startsWith(searchString [, position ])
'use strict';
-var $export = require('./$.export')
- , toLength = require('./$.to-length')
- , context = require('./$.string-context')
+var $export = require('./_export')
+ , toLength = require('./_to-length')
+ , context = require('./_string-context')
, STARTS_WITH = 'startsWith'
, $startsWith = ''[STARTS_WITH];
-$export($export.P + $export.F * require('./$.fails-is-regexp')(STARTS_WITH), 'String', {
+$export($export.P + $export.F * require('./_fails-is-regexp')(STARTS_WITH), 'String', {
startsWith: function startsWith(searchString /*, position = 0 */){
var that = context(this, searchString, STARTS_WITH)
- , $$ = arguments
- , index = toLength(Math.min($$.length > 1 ? $$[1] : undefined, that.length))
+ , index = toLength(Math.min(arguments.length > 1 ? arguments[1] : undefined, that.length))
, search = String(searchString);
return $startsWith
? $startsWith.call(that, search, index)