Skip to content

Glossary: JavaScript Beyond the Basics

instanceof

An operator that checks whether an object was made from a class or from a class that extends it. Callers use it to tell your custom error apart from all others.

Where the book teaches it

Related terms

extends / superError classes (custom)