@s-libs/micro-dash
    Preparing search index...

    Function find

    • Iterates over elements of collection, returning the first element predicate returns truthy for.

      Contribution to minified bundle size, when it is the only function imported:

      • Lodash: 16,881 bytes
      • Micro-dash: 241 bytes

      Type Parameters

      • I
      • O

      Parameters

      • array: Nil | readonly I[]
      • predicate: ArrayNarrowingIteratee<O>
      • OptionalfromIndex: number

      Returns undefined | Extract<I, O> | Extract<O, I>

    • Iterates over elements of collection, returning the first element predicate returns truthy for.

      Contribution to minified bundle size, when it is the only function imported:

      • Lodash: 16,881 bytes
      • Micro-dash: 241 bytes

      Type Parameters

      • T

      Parameters

      • array: Nil | readonly T[]
      • predicate: ArrayIteratee<T, boolean>
      • OptionalfromIndex: number

      Returns undefined | T

    • Iterates over elements of collection, returning the first element predicate returns truthy for.

      Contribution to minified bundle size, when it is the only function imported:

      • Lodash: 16,881 bytes
      • Micro-dash: 241 bytes

      Type Parameters

      • I
      • T extends {}
      • O
      • F extends undefined | number = undefined

      Parameters

      • object: I
      • predicate: ValueNarrowingIteratee<T, O>
      • OptionalfromIndex: F

      Returns
          | IfCouldBe<F, number, undefined>
          | IfCouldBe<I, Nil, undefined>
          | PossibleValueMatches<T, O>
          | (DefiniteValueMatches<T, O> extends never ? undefined : never)

    • Iterates over elements of collection, returning the first element predicate returns truthy for.

      Contribution to minified bundle size, when it is the only function imported:

      • Lodash: 16,881 bytes
      • Micro-dash: 241 bytes

      Type Parameters

      • I
      • T extends {}
      • O
      • F extends undefined | number = undefined

      Parameters

      • object: I
      • predicate: KeyNarrowingIteratee<T, O>
      • OptionalfromIndex: F

      Returns
          | IfCouldBe<F, number, undefined>
          | IfCouldBe<I, Nil, undefined>
          | PossibleKeyMatches<T, O>
          | (DefiniteKeyMatches<T, O> extends never ? undefined : never)

    • Iterates over elements of collection, returning the first element predicate returns truthy for.

      Contribution to minified bundle size, when it is the only function imported:

      • Lodash: 16,881 bytes
      • Micro-dash: 241 bytes

      Type Parameters

      • T

      Parameters

      • object: Nil | T
      • predicate: ObjectIteratee<T, boolean>
      • OptionalfromIndex: number

      Returns undefined | T[keyof T]