Function lengthSatisfies

  • Example

    ```ts import * as A from "flurp/array"; import * as N from "flurp/number";

    const shorterThanTwo = A.lengthSatisfies(N.isLt(2)); shorterThanTwo([3]); // true shorterThanTwo([3, 4]); // false

    Type Parameters

    • T

    Parameters

    • condition: ((x: number) => boolean)
        • (x: number): boolean
        • Parameters

          • x: number

          Returns boolean

    Returns ((arr: readonly T[]) => boolean)

      • (arr: readonly T[]): boolean
      • Parameters

        • arr: readonly T[]

        Returns boolean