deno.land / x / lodash@4.17.19 / npm-package / _createOver.js

_createOver.js
نووسراو ببینە
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
var apply = require('./_apply'), arrayMap = require('./_arrayMap'), baseIteratee = require('./_baseIteratee'), baseRest = require('./_baseRest'), baseUnary = require('./_baseUnary'), flatRest = require('./_flatRest');
/** * Creates a function like `_.over`. * * @private * @param {Function} arrayFunc The function to iterate over iteratees. * @returns {Function} Returns the new over function. */function createOver(arrayFunc) { return flatRest(function(iteratees) { iteratees = arrayMap(iteratees, baseUnary(baseIteratee)); return baseRest(function(args) { var thisArg = this; return arrayFunc(iteratees, function(iteratee) { return apply(iteratee, thisArg, args); }); }); });}
module.exports = createOver;
lodash

Version Info

Tagged at
3 years ago

External Dependencies

No external dependencies 🎉