Created
November 30, 2020 03:09
-
-
Save phillipsj/a8e5466b94fd6f586f9a54427c2ea084 to your computer and use it in GitHub Desktop.
My version which is faster than the other version. Interesting.
This file contains hidden or 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
function myIsPalindrome(string){ | |
let reversed = string.split("").reverse().join(""); | |
return string === reversed ? true : false; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment