Created
May 24, 2019 00:33
-
-
Save SoftwareDevPro/773815ffcb48e751d6d20ea2017894f0 to your computer and use it in GitHub Desktop.
Palindrome Checker Implementation for Free Code Camp
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{"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