Skip to content

Instantly share code, notes, and snippets.

@zzarcon
Created March 13, 2016 01:38
Show Gist options
  • Select an option

  • Save zzarcon/a92e708b7ec49a95b5d9 to your computer and use it in GitHub Desktop.

Select an option

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