MCPcopy
hub / github.com/adrianhajdin/banking / formatAmount

Function formatAmount

lib/utils.ts:69–77  ·  view source on GitHub ↗
(amount: number)

Source from the content-addressed store, hash-verified

67};
68
69export function formatAmount(amount: number): string {
70 const formatter = new Intl.NumberFormat("en-US", {
71 style: "currency",
72 currency: "USD",
73 minimumFractionDigits: 2,
74 });
75
76 return formatter.format(amount);
77}
78
79export const parseStringify = (value: any) => JSON.parse(JSON.stringify(value));
80

Callers 5

BankInfoFunction · 0.90
TransactionsTableFunction · 0.90
BankCardFunction · 0.90
BankDropdownFunction · 0.90
TransactionHistoryFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected