DEV Community

Discussion on: 20 Killer JavaScript One Liners ☝️

 
eioluseyi profile image
Emmanuel Imolorhe

In a bid to be obnoxious 😏 you could have shortened your code further by 2 characters 🌚

const reverse = str => [...str].reverse().join``;
Enter fullscreen mode Exit fullscreen mode