1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950 |
- var baseRest = require('./_baseRest'),
- createWrap = require('./_createWrap'),
- getHolder = require('./_getHolder'),
- replaceHolders = require('./_replaceHolders');
- var WRAP_PARTIAL_FLAG = 32;
- var partial = baseRest(function(func, partials) {
- var holders = replaceHolders(partials, getHolder(partial));
- return createWrap(func, WRAP_PARTIAL_FLAG, undefined, partials, holders);
- });
- partial.placeholder = {};
- module.exports = partial;
|