MCPcopy Create free account
hub / github.com/codecombat/codecombat / skipPracticeLevels

Function skipPracticeLevels

app/core/utils.js:983–988  ·  view source on GitHub ↗
(levels, index)

Source from the content-addressed store, hash-verified

981}
982
983const skipPracticeLevels = function (levels, index) {
984 while ((index >= 0) && isPractice(levels[index])) {
985 index--
986 }
987 return index
988}
989
990const findFirstIncompleteLevelOfPreviousPracticeChain = function (levels, currentIndex) {
991 let index = skipNonPracticeLevels(levels, currentIndex - 1)

Calls 1

isPracticeFunction · 0.85

Tested by

no test coverage detected