TypeScriptType Guardsinstanceof
typeof

instanceofType Guards

in operator

Tests whether the prototype property of a constructor appears anywhere in the prototype chain of an object.

Syntax

value instanceof ClassName