aboutsummaryrefslogtreecommitdiff
path: root/node_modules/core-js/modules/$.partial.js
diff options
context:
space:
mode:
Diffstat (limited to 'node_modules/core-js/modules/$.partial.js')
-rw-r--r--node_modules/core-js/modules/$.partial.js24
1 files changed, 0 insertions, 24 deletions
diff --git a/node_modules/core-js/modules/$.partial.js b/node_modules/core-js/modules/$.partial.js
deleted file mode 100644
index 53f97aa9c..000000000
--- a/node_modules/core-js/modules/$.partial.js
+++ /dev/null
@@ -1,24 +0,0 @@
-'use strict';
-var path = require('./$.path')
- , invoke = require('./$.invoke')
- , aFunction = require('./$.a-function');
-module.exports = function(/* ...pargs */){
- var fn = aFunction(this)
- , length = arguments.length
- , pargs = Array(length)
- , i = 0
- , _ = path._
- , holder = false;
- while(length > i)if((pargs[i] = arguments[i++]) === _)holder = true;
- return function(/* ...args */){
- var that = this
- , $$ = arguments
- , $$len = $$.length
- , j = 0, k = 0, args;
- if(!holder && !$$len)return invoke(fn, pargs, that);
- args = pargs.slice();
- if(holder)for(;length > j; j++)if(args[j] === _)args[j] = $$[k++];
- while($$len > k)args.push($$[k++]);
- return invoke(fn, args, that);
- };
-}; \ No newline at end of file