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