@hyperjump/pact
    Preparing search index...

    Variable flattenConst

    flatten: <A>(
        iterator: NestedIterable<A> | NestedAsyncIterable<A>,
        depth?: number,
    ) => AsyncGenerator<A | NestedIterable<A> | NestedAsyncIterable<A>>

    Same as flatten, but works with AsyncGenerators.

    Type declaration

      • <A>(
            iterator: NestedIterable<A> | NestedAsyncIterable<A>,
            depth?: number,
        ): AsyncGenerator<A | NestedIterable<A> | NestedAsyncIterable<A>>
      • Type Parameters

        • A

        Parameters

        • iterator: NestedIterable<A> | NestedAsyncIterable<A>
        • Optionaldepth: number

        Returns AsyncGenerator<A | NestedIterable<A> | NestedAsyncIterable<A>>