(amount: number)
| 67 | }; |
| 68 | |
| 69 | export 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 | |
| 79 | export const parseStringify = (value: any) => JSON.parse(JSON.stringify(value)); |
| 80 |
no outgoing calls
no test coverage detected