All challenges

JavaScript challenge · Frontend

Array.prototype.filter

Difficulty

easy

Time

~15m

Format

Single

Grading

Auto-graded

#frontend#javascript#typescript#arrays#higher-order
Mission file // read carefullyeasy

Implement filter(arr, fn) mirroring Array.prototype.filter: return a new array of the elements for which fn(value, index, array) is truthy.

Build with

TypeScriptJavaScript
Hidden test suite
Auto-graded on submit
Start challenge

Sign in to save your progress.