(rows: string[][])
| 90 | |
| 91 | /** Serialize a grid to RFC-4180 CSV text (LF newlines, trailing newline). */ |
| 92 | export function serializeCsv(rows: string[][]): string { |
| 93 | if (rows.length === 0) return '' |
| 94 | return `${rows.map((r) => r.map(serializeCell).join(',')).join('\n')}\n` |
| 95 | } |
| 96 | |
| 97 | // --------------------------------------------------------------------------- |
| 98 | // Schema-aware rows |
no outgoing calls
no test coverage detected