UNPKG

316 BTypeScriptView Raw
1export declare function sortBy<T>(arr: T[], fn: (i: T) => sortBy.Types | sortBy.Types[]): T[];
2export declare namespace sortBy {
3 type Types = string | number | undefined | boolean;
4}
5export declare function uniq<T>(arr: T[]): T[];
6export declare function uniqWith<T>(arr: T[], fn: (a: T, b: T) => boolean): T[];