Function getEmptyRows

  • Returns the indexes of empty rows.

    Parameters

    • worksheet: Worksheet

      The ExcelJS worksheet.

    Returns Promise<number[]>

    A promise that resolves to an array of 1-based row indexes that are empty.

    const emptyRows = await getEmptyRows(worksheet);
    console.log(`Found ${emptyRows.length} empty rows`);