mirror of
https://github.com/whoisclebs/lodash.git
synced 2026-02-11 03:17:49 +00:00
Bump to v4.8.2.
This commit is contained in:
@@ -1,5 +1,6 @@
|
||||
var apply = require('./_apply'),
|
||||
arrayMap = require('./_arrayMap'),
|
||||
baseFlatten = require('./_baseFlatten'),
|
||||
baseIteratee = require('./_baseIteratee'),
|
||||
rest = require('./rest');
|
||||
|
||||
@@ -15,7 +16,7 @@ var nativeMin = Math.min;
|
||||
* @memberOf _
|
||||
* @category Function
|
||||
* @param {Function} func The function to wrap.
|
||||
* @param {...Function} [transforms] The functions to transform
|
||||
* @param {...(Function|Function[])} [transforms] The functions to transform.
|
||||
* arguments, specified individually or in arrays.
|
||||
* @returns {Function} Returns the new function.
|
||||
* @example
|
||||
@@ -39,7 +40,7 @@ var nativeMin = Math.min;
|
||||
* // => [100, 10]
|
||||
*/
|
||||
var overArgs = rest(function(func, transforms) {
|
||||
transforms = arrayMap(transforms, baseIteratee);
|
||||
transforms = arrayMap(baseFlatten(transforms, 1), baseIteratee);
|
||||
|
||||
var funcsLength = transforms.length;
|
||||
return rest(function(args) {
|
||||
|
||||
Reference in New Issue
Block a user