Map, filter, reduce
🏷️ Javascript
map
: transform all elements in an array
filter
: filter elements in an array based on the condition
reduce
: execute the callback and return a value
https://wsvincent.com/functional-javascript-map-filter-reduce/
https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/map
https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/filter
https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/reduce