Created
July 16, 2020 20:20
-
-
Save FeMaffezzolli/424f3cf6da0fa6893ded68b4542da304 to your computer and use it in GitHub Desktop.
Format currency value
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const formatValue = (value: number): string => | |
Intl.NumberFormat('pt-BR', { | |
style: 'currency', | |
currency: 'BRL', | |
}).format(value); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment