Created
September 18, 2019 06:31
-
-
Save MithraTalluri/daf37fee4b8fa31a0f09d6facca3e46c 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
if (obj is String) { | |
print(obj.length) // x is automatically cast to String | |
} | |
if (obj !is String) { | |
print("Not a String") | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment