Spread vs Rest Operators in JavaScript
At first glance, the spread operator and rest operator look exactly the same. Both use three dots:
...
That is why a lot of beginners get confused.
But even though they share the same syntax, they do
blog.sandipan.ch5 min read