Created
April 23, 2022 04:29
-
-
Save SharmaTushar/e31cc069c106d1e44d39893616517290 to your computer and use it in GitHub Desktop.
This file contains 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 isDefined<T>(value: T): value is Exclude<T, undefined> { | |
return value !== undefined | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment