-
filter()
Src
Thefilter()
method creates a new array with all elements that pass the test implemented by the provided function.
-
map()
Apply function to every element, and return a new array for this. -
forEach()
Apply function to every element, but do not return a new array.