effect-tree - v1.0.36
    Preparing search index...

    Function joinText

    • A text part that joins the given string list horizontally, separating items using the given separator.

      At the key curried you will find a curried version that takes the optional separator as first argument.

      Parameters

      • xs: string[]
      • Optionalseparator: string

      Returns Draw.Part

      import {Draw} from 'effect-tree'
      const {drawPart, joinText} = Draw

      const part = joinText(['A', 'B', 'C'], '.')

      expect(drawPart(part)).toEqual(['A.B.C'])
    Index

    Properties

    Properties

    curried: (separator?: string) => (xs: string[]) => Draw.Part