UNPKG

459 BTypeScriptView Raw
1export declare function castArray<T>(input?: T | T[]): T[];
2export declare function uniqBy<T>(arr: T[], fn: (cur: T) => any): T[];
3export declare function compact<T>(a: (T | undefined)[]): T[];
4export declare function sortBy<T>(arr: T[], fn: (i: T) => sort.Types | sort.Types[]): T[];
5export declare namespace sort {
6 type Types = string | number | undefined | boolean;
7}
8export declare const template: (context: any) => (t: string | undefined) => string;