(cells: string[])
| 91 | Math.max(c.header.length, ...rows.map(r => c.get(r).length)) |
| 92 | ); |
| 93 | const line = (cells: string[]) => |
| 94 | cells.map((c, i) => c.padEnd(widths[i] ?? 0)).join(" "); |
| 95 | console.log(line(cols.map(c => c.header))); |
| 96 | for (const r of rows) console.log(line(cols.map(c => c.get(r)))); |
| 97 | } |
no outgoing calls
no test coverage detected