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

Method ownsLevel

app/models/User.js:494–497  ·  view source on GitHub ↗
(levelOriginal)

Source from the content-addressed store, hash-verified

492 }
493
494 ownsLevel (levelOriginal) {
495 const needle = levelOriginal
496 return this.levels().includes(needle)
497 }
498
499 getHeroClasses () {
500 const idsToSlugs = _.invert(ThangTypeConstants.heroes)

Callers 2

annotateLevelsMethod · 0.80
sortItemMethod · 0.80

Calls 1

levelsMethod · 0.95

Tested by

no test coverage detected