Code & Deploy
siGit Code
Git Hosting
Toggle menu
siGit Code
Git Hosting
Sign in
Sign in
@davoodmehraban89
/
medusa
Fork
0
medusa
/
packages
/
admin
/
dashboard
/
src
/
lib
/
format-currency.ts
Code
Commits
Issues
Pulls
Cloud Agent
CICD
main
automation/medusa-upstream-review
main
project/medusa-foundation-audit
security/codeql-dependabot-gitleaks
ts
7 lines
198 Bytes
Copy permalink
Copy
Raw
1
export
const
formatCurrency
=
(
amount
:
number
,
currency
:
string
)
=>
{
2
return
new
Intl
.
NumberFormat
(
undefined
,
{
3
style
:
"
currency
"
,
4
currency
,
5
signDisplay
:
"
auto
"
,
6
}).
format
(
amount
)
7
}