getCurrencySymbol
function
Deprecated
Retrieves the currency symbol for a given currency code.
getCurrencySymbol
stringRetrieves 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$.
@paramcode
stringThe currency code.
@paramformat
"wide" | "narrow"The format, wide or narrow.
@paramlocale
stringA locale code for the locale format rules to use.
@returns
stringDescription
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$.
Jump to details