root / HServer / 00.Server / 00.Program / node_modules / lodash / over.js
이력 | 보기 | 이력해설 | 다운로드 (558 Bytes)
1 | 39 | HKM | var 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 | */
|
||
22 | var over = createOver(arrayMap);
|
||
23 | |||
24 | module.exports = over; |