...

/

The Spread Operator and Arrays

The Spread Operator and Arrays

In this lesson, you will learn how to use the spread operator with arrays.

Creating a copy

Three dots (...) define the spread operator. It can be used on an array to take every element of the array, create a copy of each element, and return the copied variables. If you ...