Skip to content

Instantly share code, notes, and snippets.

@phillipsj
Created November 30, 2020 03:09
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 phillipsj/a8e5466b94fd6f586f9a54427c2ea084 to your computer and use it in GitHub Desktop.
Save phillipsj/a8e5466b94fd6f586f9a54427c2ea084 to your computer and use it in GitHub Desktop.
My version which is faster than the other version. Interesting.
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