DEV Community

Discussion on: Three dots ( … ) in JavaScript

Collapse
 
migophotos profile image
migophotos

Great explanation! I knew about the rest parameters and even used them in my code, and now, thanks to your explanation, I will also use the spread operator. First of all, I replace all Object.assign() in my code with a short form.

Collapse
 
sagar profile image
Sagar

Thanks for your feedback.