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

Function getTitleFromChapter

src/utils/content.ts:175–177  ·  view source on GitHub ↗
(chapterAlias: string)

Source from the content-addressed store, hash-verified

173}
174
175export function getTitleFromChapter(chapterAlias: string): string {
176 return chapters.find(c => c.alias === chapterAlias)!.title
177}
178
179export function getTitleFromSubchapter(subchapterAlias: string): string {
180 return subchapters.find(c => c.alias === subchapterAlias)!.title

Callers 1

renderMethod · 0.90

Calls 1

findMethod · 0.80

Tested by

no test coverage detected