Create a new value with elements that are filtered and transformed by a provided reducer function.
A reducer function applied to each value.
Optional
The initial value of the returned accumulator.
The final value of the accumulator.
Array#reduce
Create a new value with elements that are filtered and transformed by a provided reducer function.