Skip to content

Instantly share code, notes, and snippets.

@SoftwareDevPro
Created May 24, 2019 00:33
Show Gist options
  • Save SoftwareDevPro/773815ffcb48e751d6d20ea2017894f0 to your computer and use it in GitHub Desktop.
Save SoftwareDevPro/773815ffcb48e751d6d20ea2017894f0 to your computer and use it in GitHub Desktop.
Palindrome Checker Implementation for Free Code Camp
{"index.js":"function palindrome(str) {\n return str.replace(/[\\W_]/g, '').toLowerCase() ===\n str.replace(/[\\W_]/g, '')\n .toLowerCase()\n .split('')\n .reverse()\n .join('');\n}\n\npalindrome(\"eye\");"}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment