MCPcopy
hub / github.com/lodash/lodash / createOver

Function createOver

lodash.js:5346–5356  ·  view source on GitHub ↗

* Creates a function like `_.over`. * * @private * @param {Function} arrayFunc The function to iterate over iteratees. * @returns {Function} Returns the new over function.

(arrayFunc)

Source from the content-addressed store, hash-verified

5344 * @returns {Function} Returns the new over function.
5345 */
5346 function createOver(arrayFunc) {
5347 return flatRest(function(iteratees) {
5348 iteratees = arrayMap(iteratees, baseUnary(getIteratee()));
5349 return baseRest(function(args) {
5350 var thisArg = this;
5351 return arrayFunc(iteratees, function(iteratee) {
5352 return apply(iteratee, thisArg, args);
5353 });
5354 });
5355 });
5356 }
5357
5358 /**
5359 * Creates the padding for `string` based on `length`. The `chars` string

Callers 1

lodash.jsFile · 0.85

Calls 6

flatRestFunction · 0.85
arrayMapFunction · 0.85
baseUnaryFunction · 0.85
getIterateeFunction · 0.85
baseRestFunction · 0.85
applyFunction · 0.85

Tested by

no test coverage detected