Sums a list of items by projecting each to a number.
The items to reduce.
Maps each item to the number to add.
The total. Returns 0 for an empty list.
0
sumBy(rows, (r) => r.revenue); Copy
sumBy(rows, (r) => r.revenue);
Sums a list of items by projecting each to a number.