yta
    Preparing search index...

    Function chain

    • Take any number of iterators and run them in a single series, one after the other.

      import { pipe } from "yta";
      import { chain, of, toArray } from "yta/async";

      await pipe(chain(of(0, 1, 2), of(3, 4, 5)), toArray());
      // => [0, 1, 2, 3, 4, 5]

      See also:

      Type Parameters

      • A

      Parameters

      • ...iters: AsyncIterable<A, any, any>[]

      Returns AsyncGenerator<A, void, any>