"use strict";
Object.defineProperties(exports, { __esModule: { value: true }, [Symbol.toStringTag]: { value: "Module" } });
const _arrayAggregator = require("./_arrayAggregator.cjs");
const _baseAggregator = require("./_baseAggregator.cjs");
const _baseIteratee = require("./_baseIteratee2.cjs");
const isArray = require("./isArray2.cjs");
function createAggregator(setter, initializer) {
  return function(collection, iteratee) {
    var func = isArray.default(collection) ? _arrayAggregator.default : _baseAggregator.default, accumulator = initializer ? initializer() : {};
    return func(collection, setter, _baseIteratee.default(iteratee), accumulator);
  };
}
exports.default = createAggregator;
//# sourceMappingURL=_createAggregator.cjs.map
