@tremendous/help
    Preparing search index...

    Function toExchangeRates

    • Builds an ExchangeRates dictionary from an array of region-like objects. Accepts any shape that has currency.code and currency.exchange_rate (the minimal overlap between the admin and dashboard Region types).

      Parameters

      • regions: { currency: { code: string; exchange_rate: number } }[]

      Returns ExchangeRates