Chapter 3
Higher Order Functions in JavaScript
Section 3
Introducing Map, Reduce, and Filter
Even though forEach looks like a functional utility, it is not usable when our goal is to write side-effect free code. We should still substitute loops with proper functional constructs. Therefore, it is now time to introduce the map, reduce, and filter operations. - Understand the implementation of map and use it in an example - Understand the implementation of reduce and use it in an example - Understand the implementation of filter and use it in an example