Explore Library
FlashcardIntermediate

instanceof Type Guards

instanceof narrows a value to a class instance based on its prototype chain.

Question

When should you use instanceof to narrow a type?

Click to reveal answer