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 ...
Markdown supported · ⌘↵ to post
Lize du Plessis
Learning how to code
This is super helpful!