Last change
on this file since e29cc2e was 6a3a178, checked in by Ema <ema_spirova@…>, 3 years ago |
initial commit
|
-
Property mode
set to
100644
|
File size:
558 bytes
|
Rev | Line | |
---|
[6a3a178] | 1 | 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;
|
---|
Note:
See
TracBrowser
for help on using the repository browser.