Function findIndex

  • Curried _findIndex

    Type Parameters

    • T

    Returns Curried2<((val, index?, arr?) => boolean), T[], undefined | number> | Curried2<((val, key?, obj?) => boolean), Record<string, T>, undefined | string>

  • Curried _findIndex

    Type Parameters

    • T

    Parameters

    • fn: ((val, index?, arr?) => boolean)
        • (val, index?, arr?): boolean
        • Parameters

          • val: T
          • Optional index: number
          • Optional arr: T

          Returns boolean

    Returns Curried1<T[], undefined | number>

  • Curried _findIndex

    Type Parameters

    • T

    Parameters

    • fn: ((val, key?, obj?) => boolean)
        • (val, key?, obj?): boolean
        • Parameters

          • val: T
          • Optional key: string
          • Optional obj: Record<string, T>

          Returns boolean

    Returns Curried1<Record<string, T>, undefined | string>

  • Curried _findIndex

    Type Parameters

    • T

    Parameters

    • fn: ((val, index?, arr?) => boolean)
        • (val, index?, arr?): boolean
        • Parameters

          • val: T
          • Optional index: number
          • Optional arr: T

          Returns boolean

    • arr: T[]

    Returns undefined | number

  • Curried _findIndex

    Type Parameters

    • T

    Parameters

    • fn: ((val, key?, obj?) => boolean)
        • (val, key?, obj?): boolean
        • Parameters

          • val: T
          • Optional key: string
          • Optional obj: Record<string, T>

          Returns boolean

    • obj: Record<string, T>

    Returns undefined | string