Skip to content

Instantly share code, notes, and snippets.

@d3vlopes
Created September 17, 2022 19:04
Show Gist options
  • Save d3vlopes/2c2ba8a36178ad292b34dbbcb840c1e7 to your computer and use it in GitHub Desktop.
Save d3vlopes/2c2ba8a36178ad292b34dbbcb840c1e7 to your computer and use it in GitHub Desktop.
FormatPrice
export const formatPrice = (value: number) => {
return value.toLocaleString('pt-BR', { minimumFractionDigits: 2 })
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment