stashing code
This commit is contained in:
8
packages/logic/core/currency.utils.ts
Normal file
8
packages/logic/core/currency.utils.ts
Normal file
@@ -0,0 +1,8 @@
|
||||
export function formatCurrency(amount: number, code: string) {
|
||||
return new Intl.NumberFormat("en-US", {
|
||||
style: "currency",
|
||||
currency: code,
|
||||
minimumFractionDigits: 2,
|
||||
maximumFractionDigits: 2,
|
||||
}).format(amount);
|
||||
}
|
||||
Reference in New Issue
Block a user