@lou.codes/iterables
Version:
🔁 Iterable and AsyncIterable utils
13 lines (12 loc) • 315 B
TypeScript
/**
* 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;