MCPcopy Create free account
hub / github.com/learnapollo/learnapollo / getTitleFromSubchapter

Function getTitleFromSubchapter

src/utils/content.ts:179–181  ·  view source on GitHub ↗
(subchapterAlias: string)

Source from the content-addressed store, hash-verified

177}
178
179export function getTitleFromSubchapter(subchapterAlias: string): string {
180 return subchapters.find(c => c.alias === subchapterAlias)!.title
181}

Callers 1

renderMethod · 0.90

Calls 1

findMethod · 0.80

Tested by

no test coverage detected