1 | import arrayMap from './_arrayMap.js';
|
2 | import createOver from './_createOver.js';
|
3 |
|
4 | /**
|
5 | * Creates a function that invokes `iteratees` with the arguments it receives
|
6 | * and returns their results.
|
7 | *
|
8 | * @static
|
9 | * @memberOf _
|
10 | * @since 4.0.0
|
11 | * @category Util
|
12 | * @param {...(Function|Function[])} [iteratees=[_.identity]]
|
13 | * The iteratees to invoke.
|
14 | * @returns {Function} Returns the new function.
|
15 | * @example
|
16 | *
|
17 | * var func = _.over([Math.max, Math.min]);
|
18 | *
|
19 | * func(1, 2, 3, 4);
|
20 | * // => [4, 1]
|
21 | */
|
22 | var over = createOver(arrayMap);
|
23 |
|
24 | export default over;
|