August 17, 2018 01:45 pm GMT
Original Link: https://css-tricks.com/level-up-your-filter-game/
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 languageyou 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.
Original Link: https://css-tricks.com/level-up-your-filter-game/
Share this article:
Tweet
View Full Article