Skip to content

toString([separator])

suckgamoni edited this page May 15, 2013 · 1 revision

Combine elements from a sequence into a string using the specified delimiter.

Syntax

Parameters

separator

Type: string
A separator to insert between each elements.

Return Value

A combined string.


Example

var data = ["a", "b", "c", "d"];
var s = from(data).toString("; ");

console.log(s);

/*
This code produces the following output:

a; b; c; d
*/

Clone this wiki locally