UNPKG

332 BTypeScriptView Raw
1export declare function ifElse<T, S = undefined>(condition: boolean, then: T, otherwise?: S): T | S | undefined;
2export declare function flatten(array: any[]): any[];
3export declare function removeEmptyValues<T extends {
4 [key: string]: any;
5}>(obj: T): object;
6export declare function msToMinutesAndSeconds(ms: number): string;