0
0
GGGiovanny Gongora
Takes a number and returns it in the specified currency formatting.
const toCurrency = (n: number, curr: string, LanguageFormat = undefined) =>
Intl.NumberFormat(LanguageFormat, {
style: 'currency',
currency: curr,
}).format(n);