//#region src/collection/keyBy.d.ts /** * Creates an object composed from the elements of collection keyed 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 = [ * { id: 1, name: 'John' }, * { id: 2, name: 'Jane' } * ]; * keyBy(users, 'id'); * // => { '1': {id: 1, name: 'John'}, '2': {id: 2, name: 'Jane'} } */ declare function keyBy(collection: T[], iteratee: ((item: T, index: number) => string | number) | string): Record; //#endregion export { keyBy }; //# sourceMappingURL=keyBy.d.cts.map