UNPKG

@lou.codes/iterables

Version:
13 lines (12 loc) 315 B
/** * Get the length of an iterable. * * @category Reducers * @example * ```typescript * length([1, 2, 3]); // 3 * ``` * @param iterable Iterable to get the length from. * @returns Promise with the length of the iterable. */ export declare const length: (iterable: Readonly<Iterable<unknown>>) => number;