MCPcopy Index your code
hub / github.com/codecombat/codecombat / levelNumberInExam

Function levelNumberInExam

app/lib/user-utils.js:225–232  ·  view source on GitHub ↗
(slug)

Source from the content-addressed store, hash-verified

223}
224
225function levelNumberInExam (slug) {
226 const exam = getStorageExam()
227 if (!exam) {
228 return 0
229 }
230 const levels = levelsOfExam(exam)
231 return _.findIndex(levels, { slug }) + 1
232}
233
234module.exports = {
235 extraProvisions,

Callers

nothing calls this directly

Calls 2

getStorageExamFunction · 0.85
levelsOfExamFunction · 0.85

Tested by

no test coverage detected