Implement your own version of Array.prototype.filter as myFilter(arr, predicate). Keep elements whose predicate result is TRUTHY (not just === true), return a new array, and pass (element, index, array) to the predicate.
Array.prototype.filter
myFilter(arr, predicate)
=== true
(element, index, array)
Click Run to test your code