UNPKG

locutus

Version:

Locutus other languages' standard libraries to JavaScript for fun and educational purposes

4 lines (3 loc) 229 B
type AssociateKeySelector<T> = (value: T, index: number, array: T[]) => string | number | symbol; export declare function associateBy<T>(values: T[] | unknown, keySelector: AssociateKeySelector<T>): Record<string, T>; export {};