Month: June 2019

Using .map(), .reduce() and .filter() in JavaScript

Useful links: https://code.tutsplus.com/tutorials/how-to-use-map-filter-reduce-in-javascript–cms-26209https://medium.com/poka-techblog/simplify-your-javascript-use-map-reduce-and-filter-bd02c593cc2dTo summarize:mapCreates a new array by transforming every element in an array, individually. filter Creates a new array by removing elements that don’t belong. reduceTakes all of the …