Merge Arrays using the Spread Operator

Laurie Barth
InstructorLaurie Barth

Share this video with your friends

Send Tweet
Published 3 years ago
Updated a year ago

Use the spread operator to merge multiple arrays. This example uses two, but the same pattern can be used.

Instructor: [00:01] Define an array that we'll call R1.

[00:07] Next, define a second array that we'll call R2.

[00:13] Finally, you can use the spread operator for R1 and R2, and it will merge the two arrays into a single array.