join (JavaScript)

Joins the elements of an array to form one string.

Defined in

Array (Standard - JavaScript)

Syntax

join(separator:char) : string
Parameters Description
separator A string of any length, including the empty string, to be placed between the elements.
Return value Description
string The concatenation of the elements and separators.

Examples

This computed field joins three elements separated by space-plus-space.
var a = new Array("one", true, 3);
a.join(" + ") // one + true + 3