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