Mastering the reduce function

1 · Adam Conrad · July 18, 2018, 1:27 a.m.
When you first get started learning about functional programming in JavaScript, there are a few functions you grasp pretty easily. Array.prototype.filter is very intuitive, especially if you have worked with a language like SQL which is all about filtering out data. Array.prototype.map is a bit more complex, but you can figure it out pretty quickly if you’re given a few examples....