mirror of
https://github.com/Alfresco/alfresco-ng2-components.git
synced 2025-07-31 17:38:48 +00:00
react app
This commit is contained in:
20
react-app/node_modules/lodash/internal/createPartial.js
generated
vendored
Normal file
20
react-app/node_modules/lodash/internal/createPartial.js
generated
vendored
Normal file
@@ -0,0 +1,20 @@
|
||||
var createWrapper = require('./createWrapper'),
|
||||
replaceHolders = require('./replaceHolders'),
|
||||
restParam = require('../function/restParam');
|
||||
|
||||
/**
|
||||
* Creates a `_.partial` or `_.partialRight` function.
|
||||
*
|
||||
* @private
|
||||
* @param {boolean} flag The partial bit flag.
|
||||
* @returns {Function} Returns the new partial function.
|
||||
*/
|
||||
function createPartial(flag) {
|
||||
var partialFunc = restParam(function(func, partials) {
|
||||
var holders = replaceHolders(partials, partialFunc.placeholder);
|
||||
return createWrapper(func, flag, undefined, partials, holders);
|
||||
});
|
||||
return partialFunc;
|
||||
}
|
||||
|
||||
module.exports = createPartial;
|
Reference in New Issue
Block a user