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

Function joinBody

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

Source from the content-addressed store, hash-verified

1419}
1420
1421function joinBody(lines: ReadonlyArray<string>): string {
1422 let start = 0
1423 let end = lines.length
1424 while (start < end && lines[start]?.trim() === "") start++
1425 while (end > start && lines[end - 1]?.trim() === "") end--
1426 return lines.slice(start, end).join("\n")
1427}
1428
1429function isHeadingLine(line: string | undefined): boolean {
1430 if (line === undefined) return false

Callers 3

parseDescriptionContentFunction · 0.85
parseSectionFunction · 0.85
parseExampleFunction · 0.85

Calls 3

trimMethod · 0.80
sliceMethod · 0.80
joinMethod · 0.45

Tested by

no test coverage detected