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