mirror of
https://github.com/whoisclebs/lodash.git
synced 2026-02-05 17:37:50 +00:00
Bump to v4.0.1.
This commit is contained in:
@@ -37,9 +37,9 @@ define(['./internal/arrayReduce', './internal/baseEach', './internal/baseIterate
|
||||
*/
|
||||
function reduce(collection, iteratee, accumulator) {
|
||||
var func = isArray(collection) ? arrayReduce : baseReduce,
|
||||
initFromCollection = arguments.length < 3;
|
||||
initAccum = arguments.length < 3;
|
||||
|
||||
return func(collection, baseIteratee(iteratee, 4), accumulator, initFromCollection, baseEach);
|
||||
return func(collection, baseIteratee(iteratee, 4), accumulator, initAccum, baseEach);
|
||||
}
|
||||
|
||||
return reduce;
|
||||
|
||||
Reference in New Issue
Block a user