@@ -99,3 +99,11 @@ export function formatCurrency(
|
||||
if (isNaN(num)) return "—"
|
||||
return new Intl.NumberFormat(locale, { style: "currency", currency }).format(num)
|
||||
}
|
||||
|
||||
/**
|
||||
* Format text to uppercase.
|
||||
*/
|
||||
export function formatUppercase(value?: string | null): string {
|
||||
if (value == null) return ""
|
||||
return value.toUpperCase()
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user