How to extend an existing JavaScript array with another array, …
https://stackoverflow.com/questions/1374126/how-to-extend-an-existing-javascript-array-with-another-array-without-creating
Sep 03, 2009 · @Deqing: Array's push method can take any number of arguments, which are then pushed to the back of the array. So a.push('x', 'y', 'z') is a valid call that will extend a by 3 elements.apply is a method of any function that takes an array and uses its elements as if they were all given explicitly as positional elements to the function. So a.push.apply(a, ['x', 'y', 'z']) …
DA: 5 PA: 18 MOZ Rank: 60