MCPcopy Create free account
hub / github.com/OpenEndedGroup/Field2 / createPartial

Function createPartial

lib/web/jshint.js:4957–4963  ·  view source on GitHub ↗

* Creates a `_.partial` or `_.partialRight` function. * * @private * @param {boolean} flag The partial bit flag. * @returns {Function} Returns the new partial function.

(flag)

Source from the content-addressed store, hash-verified

4955 * @returns {Function} Returns the new partial function.
4956 */
4957 function createPartial(flag) {
4958 var partialFunc = restParam(function(func, partials) {
4959 var holders = replaceHolders(partials, partialFunc.placeholder);
4960 return createWrapper(func, flag, null, partials, holders);
4961 });
4962 return partialFunc;
4963 }
4964
4965 /**
4966 * Creates a function for `_.reduce` or `_.reduceRight`.

Callers 1

runInContextFunction · 0.85

Calls 3

restParamFunction · 0.85
replaceHoldersFunction · 0.85
createWrapperFunction · 0.85

Tested by

no test coverage detected