MCPcopy
hub / github.com/exceljs/exceljs / addRow

Method addRow

lib/doc/table.js:337–346  ·  view source on GitHub ↗
(values, rowNumber)

Source from the content-addressed store, hash-verified

335 }
336
337 addRow(values, rowNumber) {
338 // Add a row of data, either insert at rowNumber or append
339 this.cacheState();
340
341 if (rowNumber === undefined) {
342 this.table.rows.push(values);
343 } else {
344 this.table.rows.splice(rowNumber, 0, values);
345 }
346 }
347
348 removeRows(rowIndex, count = 1) {
349 // Remove a rows of data

Callers

nothing calls this directly

Calls 3

cacheStateMethod · 0.95
spliceMethod · 0.65
pushMethod · 0.45

Tested by

no test coverage detected