Table.toRowsArray
Table.toRowsArray([maxResults, options]) → Promise<object[]>
Returns the table's data as an array of plain objects, each keyed by variable name. Values are converted to JavaScript types as described in Data types.
const rows = await table.toRowsArray(100, { variables: ['FIRENAME', 'FIREYEAR'] });
// [{ FIRENAME: '...', FIREYEAR: 2004 }, ...]Parameters:
Accepts the same parameters as toArrowTable(), as well as:
temporal : boolean, default true
Whether to return dates, dateTimes, and times as Temporal.PlainDate, Temporal.PlainDateTime, and Temporal.PlainTime. If false, dates and dateTimes are returned as Dates (in UTC, with millisecond precision), and times as HH:MM:SS[.ffffff] strings.
bigInt : boolean, default false
Whether to return integers as BigInts, rather than numbers (which lose precision beyond 253).
Returns: Promise<object[]>
Was this helpful?

