API/readRows
readRows
src/utils/read-path.tsfunction
readRows()
Section titled “readRows()”readRows(response: RawResponse, path: string): T[]Read a path expected to hold the row array.
A bare-array body is itself the rows, so it is returned directly and the path ignored.
| Parameter | Type | Description |
|---|---|---|
response |
RawResponse |
The raw response body |
path |
string |
Dot-separated path to the rows |
Returns — The rows, or an empty array when absent
