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