6 lines
169 B
TypeScript
6 lines
169 B
TypeScript
export const formatCurrency = (amount: number): string => {
|
|
return new Intl.NumberFormat('en-GB', {
|
|
style: 'currency',
|
|
currency: 'GBP'
|
|
}).format(amount);
|
|
};
|