yta
    Preparing search index...

    Function toArray

    • Collect the iterator into an array.

      import { pipe } from "yta";
      import { range, toArray } from "yta/sync";

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

      Type Parameters

      • A

      Returns (items: Iterable<A>) => A[]