Skip to content

Instantly share code, notes, and snippets.

@jeremyckahn
Last active February 21, 2017 19:28
Show Gist options
  • Save jeremyckahn/a45fbaf57d0f889c95658d8515ae4ad5 to your computer and use it in GitHub Desktop.
Save jeremyckahn/a45fbaf57d0f889c95658d8515ae4ad5 to your computer and use it in GitHub Desktop.
export const isPalindrome = string =>
string.split('').reverse().join('') === string;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment