Understand new features of JavaScript ECMA6 – spread operator and rest parameters.
The spread operator allows an expression to be expanded in places where multiple arguments (for function calls) or multiple elements (for array literals) are expected.
– What is spread operator
– Benefits of using spread operator
– Improving performance using spread operator
– Passing spread operator as a function parameter makes it rest parameters.
– Using spread operator in arrays
– Using spread operator to do array.push
Article : https://medium.com/@patelhemil/utility-of-spread-operator-in-javascript-83c6e157afed