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.
Glossary: JavaScript Beyond the Basics
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.