Plum LedgerPrototype
const total = entries.reduce((sum, row) => {
return sum + (row.kind === 'income' ? row.amount : -row.amount);
}, 0);const total = entries.reduce((sum, row) => {
return sum + (row.kind === 'income' ? row.amount : -row.amount);
}, 0);Sign in to comment.
No replies yet