@tremendous/help
    Preparing search index...

    Function getExchangeRate

    • Computes the cross-rate between two currencies given a rates dictionary. Returns 1 when both currencies are the same and undefined when either currency is missing from the dictionary.

      Parameters

      • fromCurrency: string | undefined
      • toCurrency: string | undefined
      • rates: ExchangeRates

      Returns number | undefined