Returns a new table with the range of columns copied from the original table.
sliceColumns(start, end?)
start
The index of the first column to include in the new table.
end optional
The index of the first column to exclude from the new table. If omitted, all columns from `start` to the end of the table are included.
new Table(["Item", "Count"], [
["Bicycle", 5],
["Scooter", 2]
]).sliceColumns(1)
| Count |
|---|
| 5 |
| 2 |