An in depth look at Array.Reduce in JavaScript
medium.com