Javascript – Combining arrays with the spread operator
Recently I had several small arrays in Javascript that I wanted to combine into one array. It would be easy enough to write a function to accept two arrays, push the values from one into the other, and return the resulting array, but ECMAScript 6 introduced the spread operator (<—a lot more examples in this … [Read more…]