MCPcopy
hub / github.com/exceljs/exceljs / removeColumns

Method removeColumns

lib/doc/table.js:377–385  ·  view source on GitHub ↗
(colIndex, count = 1)

Source from the content-addressed store, hash-verified

375 }
376
377 removeColumns(colIndex, count = 1) {
378 // Remove a column with data
379 this.cacheState();
380
381 this.table.columns.splice(colIndex, count);
382 this.table.rows.forEach(row => {
383 row.splice(colIndex, count);
384 });
385 }
386
387 _assign(target, prop, value) {
388 this.cacheState();

Callers 1

Calls 3

cacheStateMethod · 0.95
spliceMethod · 0.65
forEachMethod · 0.65

Tested by

no test coverage detected