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

Function clone

packages/app-core/src/lib/markdown-table.ts:252–258  ·  view source on GitHub ↗
(table: MarkdownTable)

Source from the content-addressed store, hash-verified

250// ---------------------------------------------------------------------------
251
252function clone(table: MarkdownTable): MarkdownTable {
253 return {
254 headers: [...table.headers],
255 rows: table.rows.map((r) => [...r]),
256 aligns: [...table.aligns]
257 }
258}
259
260export function columnCount(table: MarkdownTable): number {
261 return table.headers.length

Callers 11

setCellFunction · 0.85
insertRowFunction · 0.85
deleteRowFunction · 0.85
duplicateRowFunction · 0.85
moveRowFunction · 0.85
insertColumnFunction · 0.85
deleteColumnFunction · 0.85
duplicateColumnFunction · 0.85
moveColumnFunction · 0.85
setColumnAlignFunction · 0.85
sortByColumnFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected