That makes sense for .map(), but for .reduce() the previous value is also the accumulated value which will eventually be returned. Making that distinction in the naming convention is a nice visual cue imo.
For further actions, you may consider blocking this person and/or reporting abuse
We're a place where coders share, stay up-to-date and grow their careers.
That makes sense for
.map()
, but for.reduce()
the previous value is also the accumulated value which will eventually be returned. Making that distinction in the naming convention is a nice visual cue imo.