MCPcopy Index your code
hub / github.com/exceljs/exceljs / eachRow

Method eachRow

lib/doc/worksheet.js:554–571  ·  view source on GitHub ↗
(options, iteratee)

Source from the content-addressed store, hash-verified

552
553 // iterate over every row in the worksheet, including maybe empty rows
554 eachRow(options, iteratee) {
555 if (!iteratee) {
556 iteratee = options;
557 options = undefined;
558 }
559 if (options && options.includeEmpty) {
560 const n = this._rows.length;
561 for (let i = 1; i <= n; i++) {
562 iteratee(this.getRow(i), i);
563 }
564 } else {
565 this._rows.forEach(row => {
566 if (row && row.hasValues) {
567 iteratee(row, row.number);
568 }
569 });
570 }
571 }
572
573 // return all rows as sparse array
574 getSheetValues() {

Callers 3

columnCountMethod · 0.95
actualColumnCountMethod · 0.95
actualRowCountMethod · 0.95

Calls 2

getRowMethod · 0.95
forEachMethod · 0.65

Tested by

no test coverage detected