I am getting a little confused. I have the following array of objects:
dataTest.rows = [{
"rowHeader": "",
"rowDesc": ["INFO1"],
"rowVal": [
["1", "2", "3", "4", "5", "6", "7", "8", "9"]
]
}, {
"rowHeader": "",
"rowDesc": ["INFO2"],
"rowVal": [
["1", "2", "3", "4", "5", "6", "7", "8", "9"]
]
}];
How would I fill up the array within the array rowval with a loop if rowVal, say in object1, was empty?
I tried
for (i=0; i<9; i++){
(dataTest.rows[0]).rowVal[0][i]=i;
}
Should I completely remove the label 'rowVal', and then add it to the object to rebuild it?
rowValwith same value of index?rowValhad no arrays?