Creates a sink checking if any item satisfies the predicate.
The type of items in the stream
The function to test each item
A sink that checks if any item satisfies the predicate
await items([1, 2, 3, 4, 5])(some(x => x > 3)); // trueawait items([1, 2, 3])(some(x => x > 5)); // false Copy
await items([1, 2, 3, 4, 5])(some(x => x > 3)); // trueawait items([1, 2, 3])(some(x => x > 5)); // false
Creates a sink checking if any item satisfies the predicate.