Append an array to another array - Efficiently

by Subramanian 2012-09-14 11:59:59

var a = [4,5,6];
var b = [7,8,9];
Array.prototype.push.apply(a, b);

uneval(a); // is: [4, 5, 6, 7, 8, 9]

Tagged in:

792
like
0
dislike
0
mail
flag

You must LOGIN to add comments