Spread operator Javascript.

Spread operator was introduced in the ES6 version of javascript.

Spread operator (…)

Although the syntax of spread operator is exactly the same as the rest parameter, spread operator is used to spread an array, and object literals. We also use spread operators where one or more arguments are expected in a function call.

Leave a Reply

Your email address will not be published. Required fields are marked *