💥 2026 New Year's Sale 💥 Take 50% off your first 6 months! (new subscribers only, renews at regular price).
Join the Treehouse affiliate program and earn 25% recurring commission!
Bummer! You must be logged in to access this page.
Have you ever needed to filter array elements by certain criteria? For example, to get numbers within a range, or strings that contain certain characters?
Luckily, there is an easy way to do this in JavaScript by using the filter() method. Follow along as Dustin dives into how to use this method and what it can do. Then, he offers a challenge (and a solution) so you can get some practice using it right away.
Dustin is a passionate developer, lifelong learner, and Technical Evangelist for Treehouse.