Skip to content

Instantly share code, notes, and snippets.

@dmi3y
Created August 5, 2014 19:42
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 dmi3y/bdf310dd08d7fb624f73 to your computer and use it in GitHub Desktop.
Save dmi3y/bdf310dd08d7fb624f73 to your computer and use it in GitHub Desktop.
One word palindrome finder
function isPalindrome(word) {
var
normalizedWord = word.toLowerCase(),
reversedWord = normalizedWord.split('').reverse().join('');
return normalizedWord === reversedWord
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment