DEV Community

loading...

Discussion on: Code Golf Challenge: Palindrome Detector

Collapse
maxart2501 profile image
Massimo Artizzu • Edited
[...word].reverse().join('')==word

On the plus side, it works on emojis (.split('') doesn't), but not on complex ones (like ๐Ÿ‘จโ€๐Ÿ‘ฉโ€๐Ÿ‘งโ€๐Ÿ‘ฆ).