Fold elements left-to-right into a single accumulated value starting from initial.
initial
Dual API — works data-first or curried for use in pipe.
pipe
pipe( orders, Arrays.reduce(0, (total, o) => total + o.price), ) Copy
pipe( orders, Arrays.reduce(0, (total, o) => total + o.price), )
Fold elements left-to-right into a single accumulated value starting from
initial.Dual API — works data-first or curried for use in
pipe.