Sep 9, 2018 · 1 min read
accumulator is a good generic name for the first argument in the callback, but you should give it a more precise name if you can. If you’re totalling the numbers, then call it total. But if you’re using it to pipe or tally or flatten, then total doesn’t make as much sense.