import arrayReduce from "./_arrayReduce2.js";
import baseEach from "./_baseEach2.js";
import baseIteratee from "./_baseIteratee2.js";
import baseReduce from "./_baseReduce2.js";
import isArray from "./isArray2.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=reduce2.js.map
