This is easier to debug
const meter = postAdvancedAddressCheckRequest.addressCheck.energyQuoteAddress.electricityMeter,
matches = ecoesGetTechnicalDetailsByMpanResponse.Results[0].UtilityMatches;
for (let z = 0; z < meter.length; z++) {
for (let i = 0; i < matches.length; i++) {
for (let j = 0; j < matches.Meters.length; j++) {
for (let k = 0; k < matches[i].Meters[j].MeterDetails.length; k++) {
if (matches[i].Meters[j].MeterDetails[k].Key === "meter_serial_number") {
electricityArray.push({
"Check": true,
"serialNumber": matches[i].Meters[j].MeterDetails[k].Value
});
}
}
}
}
}
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…