Skip to content

Instantly share code, notes, and snippets.

@marlonjames71
Last active July 17, 2020 15:52
Show Gist options
  • Save marlonjames71/ca9d09d189dbffc21453fdfbf2c50c51 to your computer and use it in GitHub Desktop.
Save marlonjames71/ca9d09d189dbffc21453fdfbf2c50c51 to your computer and use it in GitHub Desktop.
isPalindrome Code Challenge
func isPalindrome(strToCheck: String) -> Bool {
let lowercase = strToCheck.lowercased()
return lowercase.reversed() == Array(lowercase)
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment