Skip to content

imelgrat/array-filter-example

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Array.filter() example

In a similar way to map(), the filter() method creates a new array. However, this method only returns the elements that pass the test provided in the callback function. In this example, the method will return only the elements that start with a "b"

Read more at: https://imelgrat.me/javascript/array-object-iteration-javascript/