[Bug] reduce
passes incorrect index
when initialValue
is excluded
#26
Labels
bug
Something isn't working
reduce
passes incorrect index
when initialValue
is excluded
#26
Describe the bug
The
reduce
implementation passes the incorrectindex
value wheninitialValue
is excluded; it should start at1
, instead of0
.To Reproduce
Expected behavior
Should return
2
.Screenshots
N/A
Additional context
N/A
The text was updated successfully, but these errors were encountered: