MCPcopy
hub / github.com/deployd/deployd / createOver

Function createOver

test-app/public/sinon.js:15884–15894  ·  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

15882 * @returns {Function} Returns the new over function.
15883 */
15884 function createOver(arrayFunc) {
15885 return flatRest(function(iteratees) {
15886 iteratees = arrayMap(iteratees, baseUnary(getIteratee()));
15887 return baseRest(function(args) {
15888 var thisArg = this;
15889 return arrayFunc(iteratees, function(iteratee) {
15890 return apply(iteratee, thisArg, args);
15891 });
15892 });
15893 });
15894 }
15895
15896 /**
15897 * Creates the padding for `string` based on `length`. The `chars` string

Callers 1

sinon.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