import arrayReduce from "./_arrayReduce.js";
import baseEach from "./_baseEach.js";
import baseIteratee from "./_baseIteratee.js";
import baseReduce from "./_baseReduce.js";
import isArray from "./isArray.js";
function reduce(collection, iteratee, accumulator) {
  var func = isArray(collection) ? arrayReduce : baseReduce, initAccum = arguments.length < 3;
  return func(collection, baseIteratee(iteratee), accumulator, initAccum, baseEach);
}
export {
  reduce as default
};
//# sourceMappingURL=reduce.js.map
