@metreeca/flow - v0.9.21
    Preparing search index...

    Function items

    • Creates a feed from a list of values.

      Each argument is contributed to the feed as a single item, in argument order, whatever its shape and without being expanded further; undefined arguments are dropped as they enter it and an empty argument list opens an empty feed.

      Type Parameters

      • V

        The type of values contributed to the feed

      Parameters

      • ...values: (V | undefined)[]

        The values to open the feed from

      Returns Feed<V>

      A feed carrying values in argument order

      await pipe(
      (items("a", "b", "c"))
      (toArray())
      ); // ["a", "b", "c"]

      await pipe(
      (items([1, 2], [3, 4]))
      (toArray())
      ); // [[1, 2], [3, 4]], as each argument is contributed whole rather than expanded

      feed to open a feed from a source expanded according to its shape