Last active
July 17, 2020 15:52
-
-
Save marlonjames71/ca9d09d189dbffc21453fdfbf2c50c51 to your computer and use it in GitHub Desktop.
isPalindrome Code Challenge
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
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