For example i've created an array in a for loop:
for (i = 0; i < data.length; i++){
   array[i] = {
     label: bread,
     color: colorArray[i]
   };
 }
In a child for loop i'd like to append more data to this array. What I tried:
for (r = 0; r < data[i].length; r++){
   array[i].push({
      data: breadTypes[r][i]
   });
}
Which throws TypeError : array[i].push is not a function. 
array[r] = { data: breadTypes[r][i] }; overwrites the existing data as expected. 
Is there a different way to do this? Thanks!
 
     
     
    