Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
extension String {
func anotherContains(sentence: String) -> Bool {
if self.lowercased().range(of: sentence.lowercased()) != nil {
return true
} else {
return false
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment