Getting only currency symbol based on Intl.NumberFormat or similar

Viewed 23

I was wondering if there is an Intl.NumberFormat option or something similar, that just returns the currency symbol based on a given input.

let formatted = (new Intl.NumberFormat('en-EN', { style: 'currency', currency: 'EUR' }).format(1)) 
//=> returns 1.00 €
//=>what I would need, just => €

Thanks for reading!

0 Answers
Related