MCPcopy Index your code
hub / github.com/braziljs/eloquente-javascript / getChapter

Function getChapter

src/client/code.mjs:223–227  ·  view source on GitHub ↗
(number)

Source from the content-addressed store, hash-verified

221}
222
223function getChapter(number) {
224 for (let i = 0; i < chapterData.length; i++)
225 if (chapterData[i].number == number)
226 return chapterData[i]
227}
228
229function addItem(container, link) {
230 let li = container.appendChild(document.createElement("li"))

Callers 4

selectContextMethod · 0.85
selectChapterMethod · 0.85
parseFragmentMethod · 0.85
findExerciseFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected