Takaro - v0.4.11
    Preparing search index...

    Function findIndex

    • 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: List<T> | null | undefined

        The array to search.

      • Optionalpredicate: ListIterateeCustom<T, boolean>

        The function invoked per iteration.

      • OptionalfromIndex: number

        The index to search from.

      Returns number

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