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

Function joinBody

packages/tools/jsdocs/src/Jsdocs.ts:1399–1405  ·  view source on GitHub ↗
(lines: ReadonlyArray<string>)

Source from the content-addressed store, hash-verified

1397}
1398
1399function joinBody(lines: ReadonlyArray<string>): string {
1400 let start = 0
1401 let end = lines.length
1402 while (start < end && lines[start]?.trim() === "") start++
1403 while (end > start && lines[end - 1]?.trim() === "") end--
1404 return lines.slice(start, end).join("\n")
1405}
1406
1407function isHeadingLine(line: string | undefined): boolean {
1408 if (line === undefined) return false

Callers 3

parseDescriptionContentFunction · 0.85
parseSectionFunction · 0.85
parseExampleFunction · 0.85

Calls 1

joinMethod · 0.80

Tested by

no test coverage detected