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

Function problemCountByLevel

app/views/editor/verifier/i18nVerifierView.js:65–67  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

63 return _.sortBy(_.flatten(Object.values(this.problemsByLevel), true), p => -p.count)
64 },
65 problemCountByLevel () {
66 return _.mapValues(this.problemsByLevel, problems => _.reduce(_.map(problems, 'count'), (a, b) => a + b))
67 }
68 },
69 created: co.wrap(function * () {
70 this.levelSlug = this.$options.propsData.levelSlug

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected