Filter

Learn how `Array.filter` works by learning how to write it yourself. It's almost as powerful as `map` and used ubiquitously throughout code.

We'll cover the following...

Array.filter

The idea here is similar to Array.map, except instead of transforming individual values, we want to filter existing values. Without any functions (besides Array.push), say we want to filter out values in an array that are less than 5:

for-loop

Access this course and 1400+ top-rated courses and projects.