MCPcopy
hub / github.com/Kong/insomnia / createOver

Function createOver

packages/insomnia/bin/yarn-standalone.js:12906–12916  ·  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

12904 * @returns {Function} Returns the new over function.
12905 */
12906 function createOver(arrayFunc) {
12907 return flatRest(function(iteratees) {
12908 iteratees = arrayMap(iteratees, baseUnary(getIteratee()));
12909 return baseRest(function(args) {
12910 var thisArg = this;
12911 return arrayFunc(iteratees, function(iteratee) {
12912 return apply(iteratee, thisArg, args);
12913 });
12914 });
12915 });
12916 }
12917
12918 /**
12919 * 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