Return the number of rows
Return a copy of table as nested array
const t = new Table();
// add stuff
// ...
const m = t.asArray();
for (const row of m) {
for (const colValue of row) {
// iterate over all column values for this row
}
}
Alternative: get value at row Y and column X
const value = m[y][x];
Return a row of objects. Keys use the column labels.
const row = table.getRowWithLabelsObject(10);
// eg:
// [{ colour: red, size: 10}, { colour: blue, size: 20 }]
Set the value of row,column to value
For a given row number, set all the columns to value
.
cols
gives the number of columns to set
Return the maximum number of columns in any row