Checks if all elements in the source satisfy the predicate.
Type of items in the source.
Predicate function to determine if an element satisfies a condition.
Collector that checks if all elements in the source satisfy the predicate.
const result = all<number>((x) => x > 0)([1, 2, 3]);console.log(result); // true Copy
const result = all<number>((x) => x > 0)([1, 2, 3]);console.log(result); // true
Checks if all elements in the source satisfy the predicate.