UNPKG

@typed/test

Version:
2 lines (1 loc) 125 B
export declare function collectByKey<A, K extends PropertyKey = PropertyKey>(f: (value: A) => K, list: A[]): Record<K, A[]>;