The filter() method of {{jsxref("Array")}} instances creates a shallow copy of a portion of a given array, filtered down to just the elements from the given array that pass the test implemented by the ...