As already explained in other answers, the parameters inside of the "[]" are optional. Regarding the question as to why the "other parameters" (i.e. previousValue etc.) are not there, those are parameters to callback
and not to reduce
. So callback
will receive those arguments on each run of reduce
.