UNPKG

@monstermann/fn

Version:

A utility library for TypeScript.

20 lines 352 B
//#region src/array/length.d.ts /** * `length(array)` * * Returns the number of elements in `array`. * * ```ts * length([1, 2, 3, 4]); // 4 * ``` * * ```ts * pipe([1, 2, 3, 4], length()); // 4 * ``` */ declare const length: { (): <T>(target: readonly T[]) => number; <T>(target: readonly T[]): number; }; //#endregion export { length };