ChemPal Documentation - v1.7.0
    Preparing search index...

    Variable CURRENCY_SYMBOL_MAPConst

    CURRENCY_SYMBOL_MAP: { [key: string]: string } = ...

    Mapping of ISO currency codes to their corresponding currency symbols. Sourced from country-list-js, so the symbols match the library (e.g. CNY → "CN¥", JPY → "¥", INR → "Rs").

    Type declaration

    • [key: string]: string
    CURRENCY_SYMBOL_MAP['USD'] // returns '$'
    CURRENCY_SYMBOL_MAP['EUR'] // returns '€'
    export const CURRENCY_SYMBOL_MAP: { [key: string]: string } = Object.fromEntries(
    Object.entries(CURRENCY_INFO).map(([code, { symbol }]) => [code, symbol]),
    );