lib/csv.js
/**
 * transform lines to string
 * @param {array} lines two dimensional array that stores csv cell text
 * @return {string} lines' csv format string
 */
transform lines to string
@param {array} lines two dimensional array that stores csv cell text
@return {string} lines' csv format string
transform lines to string @param { array } lines two dimensional array that stores csv cell text @return { string } lines ' csv format string
function linesToString(lines) {
  var string = '';
  for (var i = 0; i < lines.length; i++) {
    string += lines[i].join(',');
    string += '\n';
  }
  return string;
}
function linesToString ( lines ) { var string = '' ; for ( var i = 0 ; i < lines . length ; i ++ ) { string += lines [ i ] . join ( ',' ) ; string += '\n' ; } return string ; }
transform lines to string
 @param {array} lines two dimensional array that stores csv cell text
 @return {string} lines' csv format string
transform lines to string @param { array } lines two dimensional array that stores csv cell text @return { string } lines ' csv format string