rows([rows_or_new_order], [filter])

Class: Table.

Description:

Sets or gets all rows (array of arrays representing rows and cells) of the table. When setting rows, it replaces existing rows. To simply remove all rows pass null or empty Array as first argument.
When getting rows you can pass "true" to get them in the new sorted order instead of original order.
To filter out some rows pass filter argument. See Table > filter function's documentation for details about filter expression.

Parameters:

Name Type Default Description

[rows_or_new_order]

Array | boolean

false

Array of rows to set for the table, or boolean true to return the rows in the new sorted order or false for original order.

[filter]

string

Filter expression to retrieving only rows that meet the specified criteria. Default is undefined, no filter. Only use it for getting rows, NOT setting. Learn more about filter expression in docs from Table > filter method.

Returns:

When settings rows to the table an instance of this this Table is returned. When retrieving rows a two-dimensional Array of rows is returned.

Type: Array | Table