DEV Community

Discussion on: Daily Challenge #37 - Name Swap

Collapse
 
jmulans profile image
Ju 🔗

And with arrow function

const nameShuffler = string => string.split(' ').reverse().join(' ')
Collapse
 
deleteman123 profile image
Fernando Doglio

Yeap, a quick, little fun one liner. I love it!