We're a place where coders share, stay up-to-date and grow their careers.
.split('') can be shortened:
.split('')
[...string].reverse().join('')
Also good because split will fail badly for some utf8 things like emojis
.split('')
can be shortened:Also good because split will fail badly for some utf8 things like emojis