MCPcopy Create free account
hub / github.com/pacexy/flow / totalLength

Method totalLength

apps/reader/src/models/reader.ts:225–227  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

223 }
224
225 get totalLength() {
226 return this.sections?.reduce((acc, s) => acc + s.length, 0) ?? 0
227 }
228
229 toggle(id: string) {
230 const item = find(this.nav?.toc, id) as INavItem

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected