Rest Operator
We will learn how to extract values from objects, arrays, and function arguments using the rest operator.
We'll cover the following...
The rest operator is closely related to the spread operator. It takes care of the elements remaining in an array or object after destructuring or using function arguments. Its name is self-explanatory — it deals with the “rest” of the elements. Similar to the spread operator, the rest operator is preceded by ...