Created
April 19, 2020 18:37
-
-
Save RodrigoNovais/278d5eaf52daf668700d3b2432027009 to your computer and use it in GitHub Desktop.
not empty value checker
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
export default <T>(value: T | null | undefined): value is T => !!value |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment