Created
January 28, 2018 15:42
-
-
Save dragonza/6efb6271c02b9842060084fd509ee3f5 to your computer and use it in GitHub Desktop.
Palindromes
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 palindrome(str) { | |
| const reversed = str.split('').reverse().join(''); | |
| return str === reversed; | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment