needy.js
function csv(array)
	{
		if (!(array instanceof Array) || array.length === 0)
			return '';

		array = array.slice(0);

		var i = array.length;
		while (i--)
			array[i] = '"' + (''+array[i]).replace(/(\\|")/g, '\\$1') + '"';

		return array.join(', ');
	}
function csv(array)
	{
		if (!(array instanceof Array) || array.length === 0)
			return '';

		array = array.slice(0);

		var i = array.length;
		while (i--)
			array[i] = '"' + (''+array[i]).replace(/(\\|")/g, '\\$1') + '"';

		return array.join(', ');
	}
function csv ( array ) { if ( ! ( array instanceof Array ) || array . length === 0 ) return '' ; array = array . slice ( 0 ) ; var i = array . length ; while ( i -- ) array [ i ] = '"' + ( '' + array [ i ] ) . replace ( / (\\|") / g , '\\$1' ) + '"' ; return array . join ( ', ' ) ; }
Return a quoted CSV string.
Return a quoted CSV string .