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