JavaScript Rest and Spread
Learn about rest parameters and spread syntax in this lesson.
By the end of this lesson, we’ll be able to do the following:
- Use rest parameters to collect an arbitrary number of property keys in an object into a new object.
- Apply the spread operator to create a shallow copy of an object.