MDN wants to talk to developers like you: https://qsurvey.mozilla.com/s3/8d22564490d8

jordan-carney

Member since
jordan-carney

Recent Docs Activity

View all activity
Page Date Comment

Array.prototype.reduce()


"previousValue" can be easily misunderstood when trying to understand how reduce operates, especially when juxtaposed with "currentValue". Often times it's interpreted as the previous value in the array instead of the accumulated value.

Array.prototype.reduce()