shared
utils
string
object
is
extension
js
tracking
string
dom
when
selection
position
iframe
event
scroll
console
node
string
project
fs
console
currencyCodeToSymbol
Type:Function
Status:stable
Since:1.0.0
Platform:jsnode
@blackbyte.sugar.shared.currency
This function return the currency symbol like ”$” from a code like “USD”
Params
- code*-String
The currency code to get the symbol from
Return
- -String
The currency symbol
Example
import { currencyCodeToSymbol } from '@blackbyte/sugar/currency';
currencyCodeToSymbol('USD'); // => $Author
- Olivier Bosselolivier.bossel@gmail.comhttps://blackbyte.space