Created
July 18, 2022 23:11
-
-
Save rayrayzayzay/921d937da58a323a3430d06de684ee70 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function isCat(pet: Pet): pet is Cat { | |
return "mcirochip" in pet // 🔥 spelling mistake - no cats ever! | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment