loading...

re: Daily Challenge #263 - Reverse Words VIEW POST

FULL DISCUSSION
 
function reverseWords(str) {
    return str.replace(/[^\s]+/g, v=>v.split('').reverse().join(''))
}
code of conduct - report abuse