4 ms·
Unicode-aware string reverser written in JavaScript
- chmod775 13y agoAn 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('')