Apply a transform to each element. Index is passed as the second arg.
Dual API — works data-first or curried for use in pipe.
pipe
pipe( orders, Arrays.map((o) => ({ ...o, total: o.price * o.qty })), ) Copy
pipe( orders, Arrays.map((o) => ({ ...o, total: o.price * o.qty })), )
Apply a transform to each element. Index is passed as the second arg.
Dual API — works data-first or curried for use in
pipe.