I have three arrays:
var arrayOne=[{obj1}, {obj2}, {ob3}];
var arrayTwo=[{obj4}, {obj5}, {obj6}];
var arrayThree=[{obj7}, {obj8}, {obj9}];
And I need to know how to populate a new array with values from these arrays, for example:
var arrayFINAL=[{obj1}, {obj2}, {ob3}, {obj7}, {obj8}, {obj9}, {obj4}, {obj5}, {obj6}];
I thought it was something like this:
var arrayFINAL = new Array(arrayOne, arrayTwo, arrayThree);
But an array of arrays of arrays is created, not an array of objects. Does anyone know how to do this? Thnks!
source
share