Circle V2 API Docs
    Preparing search index...

    Function findTimeBoundItem

    • Finds the interval containing timestamp, or falls back to closest by start date. Null end = open-ended. exclusiveEnd = half-open [start, end).

      Type Parameters

      • T

      Parameters

      • intervals: DateInterval<T>[]
      • timestamp: Date
      • Optionaloptions: { exclusiveEnd?: boolean }

      Returns T | undefined