14 function baseReduce(collection, iteratee, accumulator, initAccum, eachFunc) {
15 eachFunc(collection,
function(value, index, collection) {
16 accumulator = initAccum
17 ? (initAccum =
false, value)
18 : iteratee(accumulator, value, index, collection);
23 module.exports = baseReduce;