A Guide to the Reduce Method in JavaScript​
medium.com