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

Function getCurrentLevelNum

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

Source from the content-addressed store, hash-verified

23 * @param currentLevel
24 */
25export const getCurrentLevelNum = (currentLevel: LevelType) => {
26 return allLevels.findIndex(
27 (level: LevelType) => level.key === currentLevel.key
28 );
29};
30
31/**
32 * 上一关

Callers 2

getPrevLevelFunction · 0.85
getNextLevelFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected