I create code like this:
for (var b = 0; b < parseDataArr.length; b++) {
for (var c = 0; c < parseDataArr[b].data_item.length; c++) {
for (var d = 0; d < parseDataArr[b].data_item[c].data_receipt.length; d++) {
var kartonReceipt = parseDataArr[b].data_item[c].data_receipt[d].cartonIRBar
}
}
}
log.debug('carton for',cartonIRBar) // not all result for loop only last data has record
How do I get all the result data from cartonIRBAr
without moving the debug()
statement inside the loop?