MCPcopy
hub / github.com/exceljs/exceljs / forEachInSheet

Method forEachInSheet

lib/utils/cell-matrix.js:76–89  ·  view source on GitHub ↗
(sheetName, callback)

Source from the content-addressed store, hash-verified

74 }
75
76 forEachInSheet(sheetName, callback) {
77 const sheet = this.sheets[sheetName];
78 if (sheet) {
79 sheet.forEach((row, rowNumber) => {
80 if (row) {
81 row.forEach((cell, colNumber) => {
82 if (cell) {
83 callback(cell, rowNumber, colNumber);
84 }
85 });
86 }
87 });
88 }
89 }
90
91 forEach(callback) {
92 _.each(this.sheets, (sheet, sheetName) => {

Callers 2

forEachMethod · 0.95
normaliseMatrixMethod · 0.80

Calls 1

forEachMethod · 0.65

Tested by

no test coverage detected