MCPcopy Create free account
hub / github.com/Openpanel-dev/openpanel / buildCSV

Function buildCSV

apps/start/src/utils/csv-download.ts:10–12  ·  view source on GitHub ↗
(rows: (string | number | null | undefined)[][])

Source from the content-addressed store, hash-verified

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

Callers 1

cohortMembersToCSVFunction · 0.85

Calls 2

joinMethod · 0.80
mapMethod · 0.45

Tested by

no test coverage detected