MCPcopy
hub / github.com/vercel/hyper / createOver

Function createOver

bin/yarn-standalone.js:12995–13005  ·  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

12993 * @returns {Function} Returns the new over function.
12994 */
12995 function createOver(arrayFunc) {
12996 return flatRest(function(iteratees) {
12997 iteratees = arrayMap(iteratees, baseUnary(getIteratee()));
12998 return baseRest(function(args) {
12999 var thisArg = this;
13000 return arrayFunc(iteratees, function(iteratee) {
13001 return apply(iteratee, thisArg, args);
13002 });
13003 });
13004 });
13005 }
13006
13007 /**
13008 * Creates the padding for `string` based on `length`. The `chars` string

Callers 1

yarn-standalone.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