Access all courses & lessons on egghead today and lock-in your price for life.
Use the spread operator to merge multiple arrays. This example uses two, but the same pattern can be used.
Instructor: Define an array that we'll call R1.
Next, define a second array that we'll call R2.
Finally, you can use the spread operator for R1 and R2, and it will merge the two arrays into a single array.
Access all courses and lessons, track your progress, gain confidence and expertise.