ChemPal Documentation - v0.0.13-beta.5
    Preparing search index...

    Variable CURRENCY_CODE_MAPConst

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

    Mapping of currency symbols to their corresponding currency codes

    Type declaration

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