MCPcopy
hub / github.com/exceljs/exceljs / spliceColumns

Method spliceColumns

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

Source from the content-addressed store, hash-verified

149 }
150
151 spliceColumns(sheetName, start, numDelete, numInsert) {
152 const sheet = this.sheets[sheetName];
153 if (sheet) {
154 const inserts = [];
155 for (let i = 0; i < numInsert; i++) {
156 inserts.push(null);
157 }
158 _.each(sheet, row => {
159 row.splice(start, numDelete, ...inserts);
160 });
161 }
162 }
163}
164
165module.exports = CellMatrix;

Callers

nothing calls this directly

Calls 3

spliceMethod · 0.65
pushMethod · 0.45
eachMethod · 0.45

Tested by

no test coverage detected