export type TIsNonEmptyArrArgs = Parameters; export type TIsNonEmptyArrReturn = ReturnType; /** * Check if an object is non-empty array * @template T * @param {unknown} arr * @returns {arr is Array} * @example * // How to check if an array is valid (non-empty)? * const myArr = [ 1, 2, 3 ]; * console.log(isNonEmptyArr(myArr)); // => true * const myObj = "string"; * console.log(isNonEmptyArr(myObj)); // => false * @example * // Narrow API data to a non-empty array before reading the first item * if (isNonEmptyArr(response.users)) { * console.log(response.users[0].name); * } */ export declare const isNonEmptyArr: (arr: unknown) => arr is T[];