Spread and Rest OperatorsExpert-Level Explanation
In ES6, the spread operator (…) allows an iterable, such as an array, to be expanded in places where zero or more arguments (for function calls) or elements (for array literals) are expected. The rest operator (…), while …