(rows: (string | number | null | undefined)[][])
| 8 | } |
| 9 | |
| 10 | function buildCSV(rows: (string | number | null | undefined)[][]): string { |
| 11 | return rows.map((row) => row.map(escapeCsvValue).join(',')).join('\n'); |
| 12 | } |
| 13 | |
| 14 | export function downloadCSV(content: string, filename: string): void { |
| 15 | const blob = new Blob([content], { type: 'text/csv;charset=utf-8;' }); |
no test coverage detected