Reincharts
    Preparing search index...

    Variable firstConst

    first: (array: any[], accessor?: any) => any = head

    Type Declaration

      • (array: any[], accessor?: any): any
      • 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