MCPcopy Create free account
hub / github.com/Effect-TS/effect / printArray

Function printArray

packages/tools/docgen/src/Printer.ts:74–79  ·  view source on GitHub ↗
(title: string, ss?: ReadonlyArray<string>)

Source from the content-addressed store, hash-verified

72}
73
74const printArray = (title: string, ss?: ReadonlyArray<string>): string => {
75 if (ss === undefined || ss.length === 0) {
76 return ""
77 }
78 return `\n\n${Markdown.bold(title)}\n\n${ss.join("\n")}`
79}
80
81const printFence = (code: string): string => {
82 if (code.startsWith("```ts") || code.startsWith("~~~ts")) {

Callers 1

printThrowsArrayFunction · 0.85

Calls 1

joinMethod · 0.80

Tested by

no test coverage detected