• This method is like _.find except that it returns the index of the first element predicate returns truthy for instead of the element itself.

    Type Parameters

    • T

    Parameters

    • array: undefined | null | List<T>

      The array to search.

    • Optional predicate: ListIterateeCustom<T, boolean>

      The function invoked per iteration.

    • Optional fromIndex: number

      The index to search from.

    Returns number

    Returns the index of the found element, else -1.

Generated using TypeDoc