Returns a collector that returns the average of all entries in the Iterable based on the selector function.
const result = await averageByAsync([1, 2, 3], (x) => x);console.log(result); // 2 Copy
const result = await averageByAsync([1, 2, 3], (x) => x);console.log(result); // 2
Returns a collector that returns the average of all entries in the Iterable based on the selector function.