Created
March 13, 2016 01:38
-
-
Save zzarcon/a92e708b7ec49a95b5d9 to your computer and use it in GitHub Desktop.
Palindrome one liner
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
function isPalindrome(str) { | |
return str === str.split('').reverse().join(''); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment