@unikue/ts-lang-utils
    Preparing search index...

    Function joinWith

    • Returns the joined string with the given texts and delimiter

      Parameters

      • Optionaltexts: null | string | string[]

        The source string or strings to inspect

      • Optionalseparator: null | string

        The delimiter string to append between each of the given texts

      • Optionalfilter: (text?: string) => boolean

        The filter to check each of the given texts should be included

      Returns undefined | string

      the joined string with the given texts and delimiter

      joinWith('foobar');    // 'foobar'
      joinWith(['foo', 'bar'], undefined); // 'foobar'
      joinWith(['foo', 'bar', 'world'], undefined, (text => text !== 'world')); // 'foobar'