(c)
| 244 | |
| 245 | // get a single column by col number. If it doesn't exist, create it and any gaps before it |
| 246 | getColumn(c) { |
| 247 | if (typeof c === 'string') { |
| 248 | // if it matches a key'd column, return that |
| 249 | const col = this._keys[c]; |
| 250 | if (col) return col; |
| 251 | |
| 252 | // otherwise, assume letter |
| 253 | c = colCache.l2n(c); |
| 254 | } |
| 255 | if (!this._columns) { |
| 256 | this._columns = []; |
| 257 | } |
| 258 | if (c > this._columns.length) { |
| 259 | let n = this._columns.length + 1; |
| 260 | while (n <= c) { |
| 261 | this._columns.push(new Column(this, n++)); |
| 262 | } |
| 263 | } |
| 264 | return this._columns[c - 1]; |
| 265 | } |
| 266 | |
| 267 | spliceColumns(start, count, ...inserts) { |
| 268 | const rows = this._rows; |
no test coverage detected