Returns a collector that returns the number of entries in the Iterable.
Type of items in the source.
A function that tests each entry for a condition.
Collector that returns the number of entries in the Iterable.
const result = countAsync((x) => x > 0)([1, 2, 3]);console.log(result); // 3 Copy
const result = countAsync((x) => x > 0)([1, 2, 3]);console.log(result); // 3
Returns a collector that returns the number of entries in the Iterable.