Returns a collector that returns the sum of all entries in the Iterable.
Type of items in the source.
Collector that returns the sum of all entries in the Iterable.
const result = sumByAsync((x) => x)([1, 2, 3]);console.log(result); // 6 Copy
const result = sumByAsync((x) => x)([1, 2, 3]);console.log(result); // 6
Returns a collector that returns the sum of all entries in the Iterable.