UNPKG

tamda

Version:

Practical functional programming library for TypeScript

22 lines (21 loc) 610 B
/** * Determines whether or not a string `text` is empty. * @param text String to check. */ export declare function isEmpty(text: string): boolean; /** * Determines whether or not an `array` is empty. * @param array Array to check. */ export declare function isEmpty<T>(array: T[]): boolean; /** * Returns a function that * determines whether or not a `list` is empty. */ export declare function isEmpty(): typeof deferred; /** * Determines whether or not a `list` is empty. * @param list List to check. */ declare function deferred<T>(list: string | T[]): boolean; export {};