This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//columns is array of string values, or something falsy | |
//rows is 2d array with inner arrays comprised of cell values (strings) | |
//columns array will have same length as each member of rows array | |
$scope.downloadCsv = function(columns, rows, filenameWithoutExtension) { | |
let separator = "\n"; | |
// join(',') + "\n"; | |
// const header = columnsArr.join(',') + "\r\n"; | |
const header = columns.join(',') + separator; |