yta
    Preparing search index...

    Function of

    • Create an iterator from each of the arguments.

      import { of } from "yta/sync";

      const arr = [];

      for (item of of("a", "b", "c")) {
      arr.push(item);
      }

      arr;
      // => ["a", "b", "c"]

      Type Parameters

      • T

      Parameters

      • ...items: T[]

      Returns Generator<T, void, any>