Last active
January 3, 2023 07:14
-
-
Save victory316/b04dfc8c0d03caab2dbace67f1b419b9 to your computer and use it in GitHub Desktop.
Useful Kotlin extensions
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
fun Any?.isNull(): Boolean { | |
return this == null | |
} | |
fun Any?.isNotNull(): Boolean { | |
return this != null | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment