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 link), making this pretty trivial: