UNPKG

@newdash/newdash

Version:

javascript/typescript utility library

14 lines (13 loc) 609 B
export default baseAggregator; /** * Aggregates elements of `collection` on `accumulator` with keys transformed * by `iteratee` and values set by `setter`. * * @private * @param {Array|Object} collection The collection to iterate over. * @param {Function} setter The function to set `accumulator` values. * @param {Function} iteratee The iteratee to transform keys. * @param {Object} accumulator The initial aggregated object. * @returns {Function} Returns `accumulator`. */ declare function baseAggregator(collection: any[] | any, setter: Function, iteratee: Function, accumulator: any): Function;