Filter
methodsExecutes a callback function for every single item in the array and returns only those items that pass the filter condition. An equivalent of Array.prototype.filter.
Parameters:callbackFunction
Returns:Array
The function that will be executed for every item.
—A new array with items that pass the filter condition.