Reincharts
    Preparing search index...
    • Returns first element of an array with optional accessor-based filtering.

      Without accessor: returns array[0] or undefined for empty/null arrays. With accessor: returns first element where accessor(element) is defined, or undefined if none found.

      Parameters

      • array: any[]
      • Optionalaccessor: any

      Returns any