Filtering arrays

The filter function produces a new array containing each element where the given testFunction returns a true value.

Was this page helpful?