@szilanor/stream
    Preparing search index...

    Function joinAsync

    • Returns a collector that returns a string of all entries in the Iterable joined together seperated a given string.

      Type Parameters

      • T

        Type of items in the source.

      Parameters

      • separator: string = ","

        String to separate the entries.

      Returns AsyncCollectorFunction<T, string>

      Collector that returns a string of all entries in the Iterable joined together seperated a given string.

      const result = joinAsync(",")("hello");
      console.log(result); // "hello"