Your Web News in One Place

Help Webnuz

Referal links:

Sign up for GreenGeeks web hosting
August 17, 2018 01:45 pm GMT

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:    Share on Facebook
View Full Article

CSS Tricks

A Web Design Community curated by Chris Coyier

More About this Source Visit CSS Tricks