Skip to content

Glossary: JavaScript Basics

filter

An array method that keeps only the elements for which your callback returns a truthy value, giving a new array.

Where the book teaches it

Related terms

mapPredicatereduce