Last active
March 7, 2021 00:59
-
-
Save marlonjames71/7ae9dcda6c28cd69565ee538134a98d4 to your computer and use it in GitHub Desktop.
String Extension - .anotherContains(_: )
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(_ stringToFind: String) -> Bool { | |
return self.range(of: stringToFind, options: .caseInsensitive) != nil | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment