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

    Function join

    • Returns the joined string with the given element(s) and delimiter

      Parameters

      • Optionalelement: any

        The source element(s) to inspect

      • Optionalseparator: null | string

        The delimiter to append between each element of the given element(s)

      • Optionalfilter: (item?: any) => boolean

        The filter to check each element of the given element(s) should be included

      Returns undefined | string

      the joined string with the given element(s) and delimiter

      David Hsing

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