imelgrat / array-filter-example

Array.filter() example

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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/

About

Array.filter() example


Languages

Language:JavaScript 55.3%Language:HTML 44.7%