Skip to content

Function: getEmptyRows()

ts
function getEmptyRows(worksheet: Worksheet): Promise<number[]>;

Defined in: src/excel/excel.tsx:764

Return the indexes of all empty rows.

Parameters

ParameterTypeDescription
worksheetWorksheetThe 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);

Matterway Assistant SDK Documentation