Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
const isCat = (animal: Animal): animal is Cat => {
//Hey compiler, this animal is a Cat
return true;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.