Constructors
constructor
- new Table(headers): Table
Properties
Private
headers
headers: string[]
Private
rows
rows: string[][]
Methods
addRow
- addRow(row): void
Returns void
clearTable
- clearTable(): void
Returns void
Private
formatRow
- formatRow(row, maxLengths): string
Parameters
row: string[]
maxLengths: number[]
Returns string
The formatted row.
getColumnCount
- getColumnCount(): number
Returns number
The number of columns.
getRowCount
- getRowCount(): number
Returns number
The number of rows.
logTable
- logTable(): void
Returns void
Represents a table with headers and rows.