• Returns the value of the first element in the provided async-iterable that satisfies the provided testing function.

    Type Parameters

    • T

      The type of the elements in the source sequence.

    Parameters

    • source: AsyncIterable<T>

      An async-iterable sequence whose elements to apply the predicate to.

    • options: FindOptions<T>

      The options for a predicate for filtering, thisArg for binding and AbortSignal for cancellation.

    Returns Promise<T | undefined>

    A promise with the value of the first element that matches the predicate.

Generated using TypeDoc