filter
Returns the elements of an array that meet the condition specified in a callback function.
Parameters
predicate
A function that accepts up to three arguments. The filter method calls the predicate function one time for each element in the array.
thisArg
An object to which the this keyword can refer in the predicate function. If thisArg is omitted, undefined is used as the this value.