UNPKG

315 BTypeScriptView Raw
1export declare function compact<T>(a: (T | undefined)[]): T[];
2export declare function uniqBy<T>(arr: T[], fn: (cur: T) => any): T[];
3export declare namespace sort {
4 type Types = string | number | undefined | boolean;
5}
6export declare function sortBy<T>(arr: T[], fn: (i: T) => sort.Types | sort.Types[]): T[];