QuizAdvanced
User-Defined Type Guards
Narrowing types using a type predicate return signature.
What does the return type `pet is Fish` signify in `function isFish(pet: Fish | Bird): pet is Fish`?
Narrowing types using a type predicate return signature.
What does the return type `pet is Fish` signify in `function isFish(pet: Fish | Bird): pet is Fish`?