MCPcopy
hub / github.com/nhn/tui.editor / createTableBody

Function createTableBody

apps/editor/src/markdown/marks/table.ts:31–39  ·  view source on GitHub ↗
(columnCount: number, rowCount: number)

Source from the content-addressed store, hash-verified

29}
30
31function createTableBody(columnCount: number, rowCount: number) {
32 const bodyRows = [];
33
34 for (let i = 0; i < rowCount; i += 1) {
35 bodyRows.push(createTableRow(columnCount));
36 }
37
38 return bodyRows;
39}
40
41function createTableRow(columnCount: number, delim?: boolean) {
42 let row = '|';

Callers 1

addTableMethod · 0.70

Calls 2

createTableRowFunction · 0.85
pushMethod · 0.65

Tested by

no test coverage detected