Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save clc80/d3d8d21d0b675c20e852c73596e324f1 to your computer and use it in GitHub Desktop.
Save clc80/d3d8d21d0b675c20e852c73596e324f1 to your computer and use it in GitHub Desktop.
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