Appearance
Function: getEmptyRows()
ts
function getEmptyRows(worksheet: Worksheet): Promise<number[]>;Defined in: src/excel/excel.tsx:764
Return the indexes of all empty rows.
Parameters
| Parameter | Type | Description |
|---|---|---|
worksheet | Worksheet | The ExcelJS worksheet. |
Returns
Promise<number[]>
A promise that resolves to an array of 1-based row indexes.
Example
ts
const emptyRows = await getEmptyRows(worksheet);
console.log('Empty rows:', emptyRows);