Function lengthSatisfies

  • Example

    ```ts import * as S from "flurp/string"; import * as N from "flurp/number";

    const shorterThanTwo = S.lengthSatisfies(N.isLt(2)); shorterThanTwo("w"); // true shorterThanTwo("weasel"); // false

    Parameters

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

          • x: number

          Returns boolean

    Returns ((s: string) => boolean)

      • (s: string): boolean
      • Parameters

        • s: string

        Returns boolean