function parseCsv(str, delim) {
	var delimiter = delim || ",";
	// Atm. it does not support quoted fields so replace them:
	var rawRowArray = str.replace(/"/g,"").split("\n");
	// Remove all empty rows:
	var rowArray = [];
	for(var i=0, n=rawRowArray.length; i<n; i++) {
		var row = rawRowArray[i];
		if(row) rowArray.push(row.split(delimiter));
	}
	return rowArray;
}
/*
 Parses a string representation of a csv-file using newline as row delimiter
 and the specified character as column delimiter or ',' by default and returns
 the resulting 2D array
*/
Parses a string representation of a csv-file using newline as row delimiter
and the specified character as column delimiter or ',' by default and returns
the resulting 2D array
Parses a string representation of a csv - file using newline as row delimiter and the specified character as column delimiter or ' ' by default and returns the resulting 2D array
function parseCsv(str, delim) {
	var delimiter = delim || ",";
	var rawRowArray = str.replace(/"/g,"").split("\n");
	var rowArray = [];
	for(var i=0, n=rawRowArray.length; i<n; i++) {
		var row = rawRowArray[i];
		if(row) rowArray.push(row.split(delimiter));
	}
	return rowArray;
}
function parseCsv ( str , delim ) { var delimiter = delim || "," ; var rawRowArray = str . replace ( / " / g , "" ) . split ( "\n" ) ; var rowArray = [ ] ; for ( var i = 0 , n = rawRowArray . length ; i < n ; i ++ ) { var row = rawRowArray [ i ] ; if ( row ) rowArray . push ( row . split ( delimiter ) ) ; } return rowArray ; }
Parses a string representation of a csv-file using newline as row delimiter
and the specified character as column delimiter or ',' by default and returns
the resulting 2D array
Parses a string representation of a csv - file using newline as row delimiter and the specified character as column delimiter or ' ' by default and returns the resulting 2D array
// Atm. it does not support quoted fields so replace them: // Remove all empty rows: