When and How to Use the Spread (...) Operator in JavaScript
ES6 provides a new operator called the spread operator that consists of three dots (...). The spread operator is a useful and easy syntax for combining or adding items to arrays, objects, or spreading an array out into a function’s arguments.
Published on 29th October 2021