3 ms·
An unicode aware string splitter would be more useful, as you could use it to reverse unicode strings in addition to other magic (like just splitting the string
by chmod775 13y ago
An unicode aware string splitter would be more useful, as you could use it to reverse unicode strings in addition to other magic (like just splitting the string correctly).
Using the unicode aware splitting method one could reverse a string like this:
string.unicodeSplit().reverse().join('')