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

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

      Parameters

      • array: any[]
      • Optionalaccessor: any

      Returns any