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

    Function toString

    • Creates a sink joining the items of the feed into a string.

      Items are rendered and joined as Array.prototype.join() would, that is through their default string representation, null values excepted, which are rendered as empty strings; an empty feed joins to an empty string.

      Type Parameters

      • V

        The type of items in the feed

      Parameters

      • separator: string = ","

        The string inserted between consecutive items, defaulting to ,

      Returns Sink<V, string>

      A sink resolving to the string joining the items of the feed

      await pipe(
      (items(1, 2, 3))
      (toString())
      ); // "1,2,3"

      await pipe(
      (items(1, 2, 3))
      (toString(" - "))
      ); // "1 - 2 - 3"