DEV Community

Discussion on: 20 Killer JavaScript One-Liners That’ll Save You Hours of Coding 🤯🔥

Collapse
 
oricis profile image
Moisés Alcocer

Alternatively to the tip number 8, when you want to have something as 1,2,3,4 (array elements separated by commas in a string) you can simply use:
arr.toString();

Collapse
 
rammcodes profile image
Ram Maheshwari ♾️

That's very helpful, Thanks for sharing 🙌