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.

3m read timeFrom javascript.plainenglish.io
Post cover image
Table of contents
map()
2 Comments

Sort: