UNPKG

558 BJavaScriptView Raw
1var arrayMap = require('./_arrayMap'),
2 createOver = require('./_createOver');
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 */
22var over = createOver(arrayMap);
23
24module.exports = over;