Skip to content

Glossary: JavaScript Basics

Predicate

Also written: predicates

A function that answers `true` or `false`, like `(p) => p.stock > 0`, used by `filter`, `find`, `some` and `every`.

Where the book teaches it

Related terms

filterCallback