(name: string, maxLength: number)
| 711 | } |
| 712 | |
| 713 | function truncateModel(name: string, maxLength: number): string { |
| 714 | if (name.length <= maxLength) return name |
| 715 | return name.slice(0, maxLength - 2) + ".." |
| 716 | } |
| 717 | |
| 718 | function formatCurrency(amount: number): string { |
| 719 | if (amount === 0) return "$0.00" |
no outgoing calls
no test coverage detected