- lengthSatisfies<T>(condition: ((x: number) => boolean)): ((arr: readonly T[]) => boolean)
-
Parameters
-
condition: ((x: number) => boolean)
-
- (x: number): boolean
-
Returns boolean
Returns ((arr: readonly T[]) => boolean)
-
- (arr: readonly T[]): boolean
-
Returns boolean
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