Created
May 1, 2019 15:39
-
-
Save vicxruiz/51100a74bb879f32f9f76505a5c68857 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
extension String { | |
func anotherContains(string: String) -> Bool { | |
if self.lowercased().range(of: string) != nil { | |
return true | |
} else if self.uppercased().range(of: string) != nil { | |
return true | |
} | |
else { | |
return false | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment