JavaScript Functional Programming — map, filter and reduce
map is used when you have an array of stuff ( scientific term ) and you want todo something ( another scientific term ) for every item in that array.
The filter() method creates a new array with all elements that pass the test implemented by the provided function.
The reduce() method applies a function against an accumulator and each element in the array (from left to right) to reduce it to a single value.