Hi, I have an array with a number of properties, and I want to push a number of items to it.
Currently I can do:
objArray.push ( { path:"assets/bikeobj/constants/alumConstantsLOW.obj",
container:alumConstantsContainer,
material:alumMaterial,
component:null
});
and that will give me the right result ie tracing objArray[0].path gives “assets/bikeobj…” etc
But I have a number of groups of data that I want to push like this, I thought I might be able to do
objArray.push ( [{ path:"assets/bikeobj/constants/alumConstantsLOW.obj",
container:alumConstantsContainer,
material:alumMaterial,
component:null
}],
[{ path:"assets/bikeobj/constants/alumConstants2.obj",
container:alumConstantsContainer,
material:alumMaterial,
component:null
}]
);
but this results in all the nodes of the array being undefined.
Also, what is the correct term for the type of array that I am using here?