re: Reverse a String - Four JavaScript Solutions VIEW POST

FULL DISCUSSION
 

.split('') can be shortened:

[...string].reverse().join('')
 

Also good because split will fail badly for some utf8 things like emojis

code of conduct - report abuse