Programmer's Wiki
Advertisement
function implode(sep, arr) {
	return arr.join(sep);
}

Example Javascript Usage[]

arr1 = new Array("dog", "cat", "mouse");
str2 = implode(".", arr1);
alert(str2); /* Returns: dog.cat.mouse */
Advertisement