@hyperjump/pact
    Preparing search index...

    Variable headConst

    head: <A>(iterator: AsyncIterable<A>) => Promise<A | undefined>

    Same as head, but works with AsyncGenerators.

    Type declaration

      • <A>(iterator: AsyncIterable<A>): Promise<A | undefined>
      • Type Parameters

        • A

        Parameters

        • iterator: AsyncIterable<A>

        Returns Promise<A | undefined>