Comment Comment by chrisandchris > accumulatorI had similar trouble, but I know call the "accumulator" just "previous" which makes it more logical in my head:.reduce( (previous, current) => previous+current, 0 ); parent chrisandchris 1 month ago
I had similar trouble, but I know call the "accumulator" just "previous" which makes it more logical in my head:
.reduce( (previous, current) => previous+current, 0 );