Creates a sink checking if all items satisfy the predicate.
The type of items in the stream
The function to test each item
A sink that checks if all items satisfy the predicate
await items([2, 4, 6, 8])(every(x => x%2 === 0)); // trueawait items([2, 3, 4])(every(x => x%2 === 0)); // false Copy
await items([2, 4, 6, 8])(every(x => x%2 === 0)); // trueawait items([2, 3, 4])(every(x => x%2 === 0)); // false
Creates a sink checking if all items satisfy the predicate.