Possible Duplicate:
How to merge two arrays in Javascript
Let's suppose I have 2 arrays:
a = ['a','b','c'];
b = ['d','e','f'];
Is there somehow to easy add the b
into a
without having to split and perform an each
for adding the elements?
Something like:
a.push(b);
And have an final a
array with the content:
a = ['a','b','c','d','e','f']