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

Function skipNonPracticeLevels

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

Source from the content-addressed store, hash-verified

974const isPractice = level => level != null ? level.practice : undefined
975
976const skipNonPracticeLevels = function (levels, index) {
977 while ((index >= 0) && !isPractice(levels[index])) {
978 index--
979 }
980 return index
981}
982
983const skipPracticeLevels = function (levels, index) {
984 while ((index >= 0) && isPractice(levels[index])) {

Calls 1

isPracticeFunction · 0.85

Tested by

no test coverage detected