JavaScript has some built-in higher-order functions. You may have already used them without even realising it. These are functions like (filter() reduce() sort() forEach() ) The filter method returns a new array of elements that passes a specific test. The map() method is used to map the values of an existing array to new values.
Table of contents
map()2 Comments
Sort: