I have an array of arrays. Say an array of fruits, and each fruit array has an array of properties. Something like
[["Apple", "seedless", "red"],["Banana", "seedless", "yellow"]]
I now have another array which has an additional property of each of the fruits in the same order as the fruits. say my other array is ["sour","sweet"]. The sour property is to be added to the apple array of properties and sweet is to be added to the banana array of properties so the resultant array looks like
[["Apple", "seedless", "red", "sour"],["Banana", "seedless", "yellow", "sweet"]]
How do I get to the inner array and append it? I know in the inner array I just have to do
for(var i=0; i<tastePropArray.length; i++){
innerArray.push(tastePropArray(i));
}
but How do I reach/access that inner array?