toDelimitedString()

The toDelimitedString linq operator returns a string consisting of all of the elements of the collection delimited by the "delimiter" value. If the "delimiter" value is not given, then the delimiter ',' will be used.
var arr = [1, 2, 3, 4, 5, 6];

// str1 = "1,2,3,4,5,6"
var str1 = $linq(arr).toDelimitedString();

// str2 = "1; 2; 3; 4; 5; 6"
var str2 = $linq(arr).toDelimitedString('; ');

Last edited Sep 20, 2012 at 9:36 PM by battousai999, version 1