Method
spliceColumns
(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 | |
| 165 | module.exports = CellMatrix; |
Callers
nothing calls this directly
Tested by
no test coverage detected