Level up your .filter game
.filter is a built-in array iteration method that accepts a predicate which is called against each of its values, and returns a subset of all values that return a truthy value.
That is a lot to unpack in one statement! Let’s take a look at that statement piece-by-piece.
- “Built-in” simply means that it is part of the language—you don’t need to add any libraries to get access to this functionality.
- “Iteration methods” accept a function that are run against each
…
The post Level up your .filter game appeared first on CSS-Tricks.




