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

Method getSourceFor

app/models/LevelSession.js:45–50  ·  view source on GitHub ↗
(spellKey)

Source from the content-addressed store, hash-verified

43 }
44
45 getSourceFor (spellKey) {
46 // spellKey ex: 'hero-placeholder/plan'
47 const code = this.get('code')
48 const parts = spellKey.split('/')
49 return __guard__(code != null ? code[parts[0]] : undefined, x => x[parts[1]])
50 }
51
52 readyToRank () {
53 let c1, c2, team

Callers 1

Calls 2

__guard__Function · 0.70
getMethod · 0.45

Tested by

no test coverage detected