Function find

  • Locates the first value yielded by the supplied iterable that satisfies the supplied predicate.

    Type Parameters

    Type Parameters

    • T

    Parameters

    • predicate: ((arg: T) => boolean)

      A function that takes an element yielded by the provided iterable and returns a boolean.

        • (arg: T): boolean
        • Parameters

          • arg: T

          Returns boolean

    • iterable: Iterable<T> | AsyncIterable<T>

    Returns Promise<T>

Generated using TypeDoc