MCPcopy
hub / github.com/liyupi/sql-mother / getNextLevel

Function getNextLevel

src/levels/index.ts:49–55  ·  view source on GitHub ↗
(currentLevel: LevelType)

Source from the content-addressed store, hash-verified

47 * @param currentLevel
48 */
49export const getNextLevel = (currentLevel: LevelType) => {
50 const num = getCurrentLevelNum(currentLevel);
51 if (num >= allLevels.length - 1) {
52 return;
53 }
54 return allLevels[num + 1];
55};

Callers

nothing calls this directly

Calls 1

getCurrentLevelNumFunction · 0.85

Tested by

no test coverage detected