DEV Community

Discussion on: Using the Spread Operator (...) in JavaScript

Collapse
 
pentacular profile image
pentacular • Edited

We can use the spread operator again. However, when we use it like this, it changes name and becomes the “rest operator”:

I think the important point here is that you're not using the spread operator again. :)

It's a different bit of syntax (not an operator, per se) that happens to look a bit similar.