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