Combining arrays with the spread operator

We have seen how to use some new syntax to extract elements from an array. Not to be left out, there are also some new facilities for combining arrays. Helpfully, as we'll see, the use of the spread operator mirrors that of the rest operator.

In this recipe, we'll take a look at how to use the spread operator to combine arrays.

..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset
3.137.148.137