(table: MarkdownTable, index: number)
| 296 | } |
| 297 | |
| 298 | export function duplicateRow(table: MarkdownTable, index: number): MarkdownTable { |
| 299 | if (index < 0 || index >= table.rows.length) return table |
| 300 | const next = clone(table) |
| 301 | next.rows.splice(index + 1, 0, [...next.rows[index]]) |
| 302 | return next |
| 303 | } |
| 304 | |
| 305 | export function moveRow( |
| 306 | table: MarkdownTable, |
no test coverage detected