Function findIndex

Curried _findIndex

  • Type Parameters

    • T

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

  • Type Parameters

    • T

    Parameters

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

    Returns Curried1<T[], undefined | number>

  • Type Parameters

    • T

    Parameters

    • fn: (val: T, key?: string, obj?: Record<string, T>) => boolean

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

  • Type Parameters

    • T

    Parameters

    • fn: (val: T, index?: number, arr?: T) => boolean
    • arr: T[]

    Returns undefined | number

  • Type Parameters

    • T

    Parameters

    • fn: (val: T, key?: string, obj?: Record<string, T>) => boolean
    • obj: Record<string, T>

    Returns undefined | string