Skip to main content

Description

Joins an array of strings into a single string using a specified delimiter.

Syntax

Parameters

Returns

Type: string A single string with all array elements concatenated, separated by the delimiter. Returns null if the array is null or undefined.

Examples

Example 1: Basic String Joining

Output:

Example 2: Building CSV Lines

Example 3: Creating Tags String

Output:

Example 4: Building Paths

Output:

Notes

  • Returns null if input array is null
  • Empty strings in the array are included in the output
  • Delimiter can be any string, including empty string
  • Commonly used for CSV generation, path building, or tag formatting

See Also

Frequently Asked Questions

Null elements are included in the output as empty positions between delimiters.
Yes. Using an empty string '' as the delimiter concatenates all elements without any separator.