TypeScript sum wszystkie wartości tablicy
const sum = receiptItems.reduce((sum, current) => sum + current.total, 0);
Mobile Star
const sum = receiptItems.reduce((sum, current) => sum + current.total, 0);