• Returns the first element of an async-iterable sequence that matches the predicate if provided, or undefined if no such element exists.

    Type Parameters

    • T

      The type of the elements in the source sequence.

    Parameters

    • source: AsyncIterable<T>

      Source async-enumerable sequence.

    • Optional options: OptionalFindOptions<T>

    Returns Promise<T | undefined>

    A Promise containing the first element in the async-iterable sequence, or a default value if no such element exists.

Generated using TypeDoc