MCPcopy Create free account
hub / github.com/ZenNotes/zennotes / duplicateRow

Function duplicateRow

packages/app-core/src/lib/markdown-table.ts:298–303  ·  view source on GitHub ↗
(table: MarkdownTable, index: number)

Source from the content-addressed store, hash-verified

296}
297
298export 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
305export function moveRow(
306 table: MarkdownTable,

Callers 2

openTableContextMenuFunction · 0.90

Calls 1

cloneFunction · 0.85

Tested by

no test coverage detected