DEV Community

Discussion on: 24 modern ES6 code snippets to solve practical JS problems

Collapse
 
mateiadrielrafael profile image
Matei Adriel

Why do you need the spread in the first example, rest params will already be collected into an array