(columns: string[], rows: string[][])
| 84 | * einzige Code, der sie liest, ist der Abfragebauer, der sie geschrieben hat. |
| 85 | */ |
| 86 | export function rowsToObjects(columns: string[], rows: string[][]): Record<string, string>[] { |
| 87 | return rows.map((row) => { |
| 88 | const out: Record<string, string> = {}; |
| 89 | columns.forEach((column, index) => { |
| 90 | out[column] = row[index] ?? ''; |
| 91 | }); |
| 92 | return out; |
| 93 | }); |
| 94 | } |
| 95 | |
| 96 | /** |
| 97 | * Was ein gescheiterter Aufruf fuer die Produktlogik bedeutet. |
no outgoing calls
no test coverage detected