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

Method levels

app/models/User.js:478–482  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

476 }
477
478 levels () {
479 const earned = this.get('earned')?.levels || []
480 const purchased = this.get('purchased')?.levels || []
481 return earned.concat(purchased).concat(LevelConstants.levels['dungeons-of-kithgard']).concat(LevelConstants.levels['the-gem'])
482 }
483
484 ownsHero (heroOriginal) {
485 const needle = heroOriginal

Callers 2

ownsLevelMethod · 0.95
getRenderDataMethod · 0.80

Calls 1

getMethod · 0.95

Tested by

no test coverage detected