Skip to content

Instantly share code, notes, and snippets.

View gkatsanos's full-sized avatar

George Katsanos gkatsanos

View GitHub Profile
import groupby from 'https://esm.sh/lodash.groupby'
import moment from 'https://esm.sh/moment'
import { Transaction } from '../types.ts'
export function calculateTransactionTotals(content: Transaction[]) {
groupTransactionsByUserAndCurrency(content)
return prepareData(groupTransactionsByUserAndCurrency(content), content)
}
const calculateTotalAmountsPerCurrency = (transactions) => {