DEV Community

Discussion on: 1 line of code: How to reverse all words of a string

Collapse
 
martinkr profile image
Martin Krause

Hey everyone,

thank you both for your thoughtull contribution.
After comparing the support tables for JavaScript built-in: Intl: Segmenter and JavaScript built-in: RegExp: unicode I perfer staying with the Regular Expression @lexlohr proposed.

I updated the script and the code as well as the testcases to inlcude unicode support.

Cheers!