hi guys the reduce method puts total, currentValue, currentIndex, arr in this order always doesn’t matter what you name them?
array.reduce(function(total, currentValue, currentIndex, arr), initialValue)
`
hi guys the reduce method puts total, currentValue, currentIndex, arr in this order always doesn’t matter what you name them?
array.reduce(function(total, currentValue, currentIndex, arr), initialValue)
`
yws, the reduce method will pass those arguments always in that order