Skip to content

Commit

Permalink
remove indexStack
Browse files Browse the repository at this point in the history
  • Loading branch information
carkom committed Dec 6, 2023
1 parent ab40197 commit e6dde2a
Showing 1 changed file with 0 additions and 11 deletions.
11 changes: 0 additions & 11 deletions packages/desktop-client/src/components/reports/util.ts
Original file line number Diff line number Diff line change
Expand Up @@ -29,17 +29,6 @@ export function index<
return result;
}

export function indexStack<
T extends Record<string, string | number>,
K extends keyof T,
>(data: T[], fieldName: K, field: K) {
const result: Record<string | number, T[K]> = {};
data.forEach(item => {
result[item[fieldName]] = item[field];
});
return result;
}

export function indexCashFlow<
T extends { date: string; isTransfer: boolean; amount: number },
>(data: T[], date: string, isTransfer: string) {
Expand Down

0 comments on commit e6dde2a

Please sign in to comment.