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

    Function joinWith

    • Returns the joined string with the given texts and delimiter

      Parameters

      • Optionaltexts: string | string[] | null

        The source string or strings to inspect

      • Optionalseparator: string | null

        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 string | undefined

      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'