JavaScript Spread Operator

With JavaScript’s spread operator, you can clone an array, or inject the values into another array, or into the parameters of a function.

You also can combine the properties of two objects when you build it using an object literal.

View code on GitHub

Leave a Reply

Your email address will not be published.