mirror of
https://github.com/whoisclebs/lodash.git
synced 2026-02-06 01:47:48 +00:00
Bump to v4.0.1.
This commit is contained in:
@@ -41,9 +41,9 @@ var arrayReduce = require('./internal/arrayReduce'),
|
||||
*/
|
||||
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);
|
||||
}
|
||||
|
||||
module.exports = reduce;
|
||||
|
||||
Reference in New Issue
Block a user