May 20, 2021
The filter method creates a new array with all elements that pass the test implemented by the provided function.
The map method creates a new array with the result of calling a provided function on every element in the calling array.The reduce method executes reduce function on each element of array resulting in single output values