Sha256: 7c64e78c6692f20aaf94bea13bdc9db5f1b6f7ad5ca4289809214631f78e450e
Contents?: true
Size: 769 Bytes
Versions: 40
Compression:
Stored size: 769 Bytes
Contents
'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); }; };
Version data entries
40 entries across 18 versions & 7 rubygems