TypeScript Sum Все значения массива
const sum = receiptItems.reduce((sum, current) => sum + current.total, 0);
Mobile Star
const sum = receiptItems.reduce((sum, current) => sum + current.total, 0);