//#region src/collection/countBy.d.ts /** * Creates an object composed from the elements of collection grouped by the results of running each element thru iteratee, with counts * @param collection - The collection to iterate over * @param iteratee - The iteratee to transform keys * @returns Returns the composed aggregate object with counts * @example * const users = [ * { name: 'John', age: 30 }, * { name: 'Jane', age: 30 }, * { name: 'Bob', age: 25 } * ]; * countBy(users, 'age'); * // => { '30': 2, '25': 1 } */ declare function countBy(collection: T[], iteratee: ((item: T, index: number) => string | number) | string): Record; //#endregion export { countBy }; //# sourceMappingURL=countBy.d.mts.map