What is the best way to remove the trailing zeros from the output when using Javascript NumberFormat
to display Swedish currency?
I want output 200 kr instead 200,00 kr
Is there a built-in solution with Intl.NumberFormat
to achieve this?
console.log(Intl.NumberFormat('sv-SE', {style:'currency', currency: 'SEK'}).format(200));