ChemPare Documentation - v0.0.0
    Preparing search index...

    Function getCurrencyCodeFromLocation

    • Maps a location to its corresponding currency code. Uses a predefined mapping from the CURRENCY_CODE_MAP_BY_LOCATION constant. Supports major international locations.

      Parameters

      • location: string

        The location to look up (e.g., 'US', 'GB')

      Returns valueof

      The corresponding currency code (e.g., 'USD', 'GBP')

      getCurrencyCodeFromLocation('US') // Returns 'USD'
      getCurrencyCodeFromLocation('GB') // Returns 'GBP'