Created
December 24, 2023 03:54
-
-
Save andeeliao/7ae8e2af5a43a6c0187b9068ced744f1 to your computer and use it in GitHub Desktop.
is not nil check
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
extension Optional { | |
var isNotNil: Bool { | |
return self != nil | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment