Typescript Instanceof Type Guard

instanceof is a type Guard, which checks if a value is an instance of a class or a constructor function. It also acts as a Type Guard, helping us the infer the type correctly in the scope

Typescript Instanceof Type Guard Read More »