Sha256: 64ed605da02f31d3963691322be76c1eb06d2b5d9daff28446a98daaa2103ae4
Contents?: true
Size: 815 Bytes
Versions: 62
Compression:
Stored size: 815 Bytes
Contents
/* */ 'use strict'; var path = require('./$.path'), invoke = require('./$.invoke'), aFunction = require('./$.a-function'); module.exports = function() { 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() { var that = this, _length = arguments.length, j = 0, k = 0, args; if (!holder && !_length) return invoke(fn, pargs, that); args = pargs.slice(); if (holder) for (; length > j; j++) if (args[j] === _) args[j] = arguments[k++]; while (_length > k) args.push(arguments[k++]); return invoke(fn, args, that); }; };
Version data entries
62 entries across 31 versions & 1 rubygems