MCPcopy Create free account
hub / github.com/codecombat/codecombat / inLeague

Method inLeague

app/models/LevelSession.js:153–159  ·  view source on GitHub ↗
(leagueId)

Source from the content-addressed store, hash-verified

151 isFake () { return this.id === LevelSession.fakeID }
152
153 inLeague (leagueId) {
154 if (!this.get('leagues')) { return false }
155 for (const league of Array.from(this.get('leagues'))) {
156 if (league.leagueID === leagueId) { return true }
157 }
158 return false
159 }
160
161 updateKeyValueDb (keyValueDb) {
162 let left

Callers 2

submitLadderMethod · 0.80
submitLadderMethod · 0.80

Calls 1

getMethod · 0.45

Tested by

no test coverage detected