angular sum up array values? code example
Example: typescript sum all array values
const sum = receiptItems.reduce((sum, current) => sum + current.total, 0);
const sum = receiptItems.reduce((sum, current) => sum + current.total, 0);