C
Нужно пробежать по массиву найти дублирование label и сделать общий count по label. Не пойму как сделать...((
for (const good of this.goods) {
const ex = result.find(item => item.label = good.label;
if (ex) {
ex.count += good.count;
} else {
result.push(good);
}
}
this.goods = result;