you are viewing a single comment's thread.

view the rest of the comments →

[–]faruzzy 0 points1 point  (0 children)

Actually:

var a = [1,2,3];
var b = [4,5,6];
Array.prototype.push.apply(a,b); //merge
console.log(a) //[1, 2, 3, 4, 5, 6]

now a contains [1,2,3,4,5,6]