Takaro - v0.4.11
    Preparing search index...
    • Iterates over elements of collection, returning the first element predicate returns truthy for. The predicate is invoked with three arguments: (value, index|key, collection).

      Type Parameters

      • T
      • S

      Parameters

      • collection: List<T> | null | undefined

        The collection to search.

      • predicate: ListIteratorTypeGuard<T, S>

        The function invoked per iteration.

      • OptionalfromIndex: number

        The index to search from.

      Returns S | undefined

      Returns the matched element, else undefined.

    • Type Parameters

      • T

      Parameters

      • collection: List<T> | null | undefined
      • Optionalpredicate: ListIterateeCustom<T, boolean>
      • OptionalfromIndex: number

      Returns T | undefined

      _.find

    • Type Parameters

      • T extends object
      • S

      Parameters

      • collection: T | null | undefined
      • predicate: ObjectIteratorTypeGuard<T, S>
      • OptionalfromIndex: number

      Returns S | undefined

      _.find

    • Type Parameters

      • T extends object

      Parameters

      • collection: T | null | undefined
      • Optionalpredicate: ObjectIterateeCustom<T, boolean>
      • OptionalfromIndex: number

      Returns T[keyof T] | undefined

      _.find