Skip to content

Instantly share code, notes, and snippets.

@zzarcon
Created March 13, 2016 01:38
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 zzarcon/a92e708b7ec49a95b5d9 to your computer and use it in GitHub Desktop.
Save zzarcon/a92e708b7ec49a95b5d9 to your computer and use it in GitHub Desktop.
Palindrome one liner
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