I've been working on comparing two nested arrays, but it keeps returning false
.
The goal is to compare the saleLineList
in each saleBlock
from this.saleBlockList
with the saleLineList
in each saleBlock
from saleBlockList
.
Even after modifying the data, it's still not giving the desired result. I've invested a lot of time into this, but can't seem to pinpoint the issue. Any help would be greatly appreciated. Thank you.
let check = saleBlockList.every(item => this.saleBlockList.every(saleBlock => saleBlock.saleLineList == item.saleLineList))
console.log('check', check)