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

Method levelForTier

app/models/User.js:401–407  ·  view source on GitHub ↗
(tier)

Source from the content-addressed store, hash-verified

399 }
400
401 static levelForTier (tier) {
402 // TODO: math
403 for (let level = 0; level < tiersByLevel.length; level++) {
404 const tierThreshold = tiersByLevel[level]
405 if (tierThreshold >= tier) { return level }
406 }
407 }
408
409 addNewUserCommonProperties () {
410 const emails = _.assign({}, this.get('emails'))

Callers 1

levelRequiredForItemMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected