mirror of
https://github.com/whoisclebs/lodash.git
synced 2026-02-03 08:37:49 +00:00
Bump to v4.11.0.
This commit is contained in:
@@ -2,6 +2,8 @@ import apply from './_apply';
|
||||
import arrayMap from './_arrayMap';
|
||||
import baseFlatten from './_baseFlatten';
|
||||
import baseIteratee from './_baseIteratee';
|
||||
import baseUnary from './_baseUnary';
|
||||
import isArray from './isArray';
|
||||
import isFlattenableIteratee from './_isFlattenableIteratee';
|
||||
import rest from './rest';
|
||||
|
||||
@@ -14,7 +16,10 @@ import rest from './rest';
|
||||
*/
|
||||
function createOver(arrayFunc) {
|
||||
return rest(function(iteratees) {
|
||||
iteratees = arrayMap(baseFlatten(iteratees, 1, isFlattenableIteratee), baseIteratee);
|
||||
iteratees = (iteratees.length == 1 && isArray(iteratees[0]))
|
||||
? arrayMap(iteratees[0], baseUnary(baseIteratee))
|
||||
: arrayMap(baseFlatten(iteratees, 1, isFlattenableIteratee), baseUnary(baseIteratee));
|
||||
|
||||
return rest(function(args) {
|
||||
var thisArg = this;
|
||||
return arrayFunc(iteratees, function(iteratee) {
|
||||
|
||||
Reference in New Issue
Block a user