• Determines whether an async-itreable includes a certain value among its entries, returning true or false as appropriate.

    Type Parameters

    • T

      The type of elements in the source sequence.

    Parameters

    • source: AsyncIterable<T>

      The source sequence to search for the item.

    • valueToFind: T

      The value to search for.

    • Optional fromIndex: number = 0

      The position in this async-iterable at which to begin searching for valueToFind.

    • Optional signal: AbortSignal

      An optional abort signal to cancel the operation at any time.

    Returns Promise<boolean>

    Returns a promise containing true if the value valueToFind is found within the async-iterable.

Generated using TypeDoc