Merge Arrays using the Spread Operator

Share this video with your friends

Social Share Links

Send Tweet
Published 6 years ago
Updated 2 years 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.