@yookue/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'