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