0๐
โ
a problem is that you are not iterating j
according to the length of delays but to the length of data, should be working if u adjust it sth. like:
for (var i = 0; i < data.length; i++) {
for (var j = 0; j < data[i].delays.length; j++) {
...
}
}
Source:stackexchange.com