Sum the numeric projection of each element. Empty input returns 0.
0
Dual API — works data-first or curried for use in pipe.
pipe
pipe( orders, Arrays.sumBy((o) => o.total), ) Copy
pipe( orders, Arrays.sumBy((o) => o.total), )
Sum the numeric projection of each element. Empty input returns
0.Dual API — works data-first or curried for use in
pipe.