getCurrencySymbol
함수
사용 중단 권고v18.0부터
Retrieves the currency symbol for a given currency code.
사용 중단을 권고합니다.
@paramcode
stringThe currency code.
@paramformat
"wide" | "narrow"The format, wide or narrow.
@paramlocale
stringA locale code for the locale format rules to use.
@returns
stringThe symbol, or the currency code if no symbol is available.
설명
Retrieves the currency symbol for a given currency code.
For example, for the default en-US locale, the code USD can
be represented by the narrow symbol $ or the wide symbol US$.
상세 내용으로 이동