import arrayAggregator from "./_arrayAggregator.js";
import baseAggregator from "./_baseAggregator.js";
import baseIteratee from "./_baseIteratee2.js";
import isArray from "./isArray2.js";
function createAggregator(setter, initializer) {
  return function(collection, iteratee) {
    var func = isArray(collection) ? arrayAggregator : baseAggregator, accumulator = initializer ? initializer() : {};
    return func(collection, setter, baseIteratee(iteratee), accumulator);
  };
}
export {
  createAggregator as default
};
//# sourceMappingURL=_createAggregator.js.map
