+ 3
Why do we call foreach(),map()and filiter higher orders of array
3 Answers
+ 3
forEach:
https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/forEach
map:
https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/map
filter:
https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/filter
+ 3
Maureen Muiru You can use the question description section to provide relevant details related to your question. Keep it in mind from now on.
Those methods take a callback function as parameter.
Functions that take another function as argument or return a function are usually called higher-order functions.
forEach, map and filter are not the only higher-order functions present in Array.prototype, there are more.
+ 2
There methods of that object