A brief look at the reduce() function in JavaScript
The array method reduce can be a tricky one to grasp. Reduce takes some items, iterates over them and returns one value.
.reducer() takes two parameters:
Accumulator - fancy way of saying ‘previous state’ or ‘previous value’. Often passed in as acc ...
davidbell.hashnode.dev2 min read
Lize du Plessis
Learning how to code
This is super helpful!