Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

Overview

Returns a string created by concatenating the items in a node-set, with a defined separator between adjacent items.

Code Block
languagejs
string string-join(arg, [separator])

Arguments

node-set arg

Nodes to join as a string.

string separator

Separator to use join values. If not specified, an empty string is used.

Return Value

Joined string value.

Remarks


Examples

Code Block
string-join(('Now', 'is', 'the', 'time', '...'), ' ') returns "Now is the time ..."
string-join(names, ',') returns "a,b,c"


See Also