DEV Community

Discussion on: Polyfill for Array.reduce() Javascript

Collapse
 
amansaxena001 profile image
Amansaxena001

in else part it should be this[i+1] not this[1]