DEV Community

Discussion on: I spent an entire Saturday trying to understand .reduce()

 
phillipkent profile image
Phillip Kent Knight

This is a great explanation and makes perfect sense to me - my original post was mostly driven by failing to properly imagine/visualize the accumulator itself, but it's definitely helpful to have a clearer understanding of the use cases for initial value and index.