Returns a new table containing only the rows for which the specified function returns true.
where(column, fn)
column
The name or index of the column to sort by.
fn function(rowValue)
A function that returns true for rows to include in the new table.
new Table(["Item", "Count"], [
["Bicycle", 5],
["Scooter", 2]
]).where("Count", v => v > 2)
| Item | Count |
|---|---|
| Bicycle | 5 |