MCPcopy
hub / github.com/exceljs/exceljs / spliceRows

Method spliceRows

lib/utils/cell-matrix.js:140–149  ·  view source on GitHub ↗
(sheetName, start, numDelete, numInsert)

Source from the content-addressed store, hash-verified

138 }
139
140 spliceRows(sheetName, start, numDelete, numInsert) {
141 const sheet = this.sheets[sheetName];
142 if (sheet) {
143 const inserts = [];
144 for (let i = 0; i < numInsert; i++) {
145 inserts.push([]);
146 }
147 sheet.splice(start, numDelete, ...inserts);
148 }
149 }
150
151 spliceColumns(sheetName, start, numDelete, numInsert) {
152 const sheet = this.sheets[sheetName];

Callers

nothing calls this directly

Calls 2

spliceMethod · 0.65
pushMethod · 0.45

Tested by

no test coverage detected