All challenges
JavaScript challenge· Frontend
Array.prototype.filter
easy
15m
#frontend#javascript#typescript#arrays#higher-order
Implement filter(arr, fn) mirroring Array.prototype.filter: return a new array of the elements for which fn(value, index, array) is truthy.