mirror of
https://github.com/whoisclebs/lodash.git
synced 2026-02-06 09:47:48 +00:00
Bump to v4.0.1.
This commit is contained in:
@@ -41,9 +41,9 @@ import isArray from './isArray';
|
||||
*/
|
||||
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);
|
||||
}
|
||||
|
||||
export default reduce;
|
||||
|
||||
Reference in New Issue
Block a user