reduceSuccessive
Applies a function against an accumulator and each element in the array (from left to right), returning an array of successively reduced values.
- Use
Array.prototype.reduce()
to apply the given function to the given array, storing each new result.