MCPcopy Index your code
hub / github.com/codecombat/codecombat / openSpots

Method openSpots

app/models/Prepaid.js:25–28  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

23 }
24
25 openSpots () {
26 if (this.get('redeemers') != null) { return this.get('maxRedeemers') - __guard__(this.get('redeemers'), x => x.length) }
27 return this.get('maxRedeemers')
28 }
29
30 usedSpots () {
31 return _.size(this.get('redeemers'))

Callers 5

statusMethod · 0.95
assignCourseFunction · 0.80
prepaids.jsFile · 0.80
applyLicensesFunction · 0.80
assignCourseMethod · 0.80

Calls 2

__guard__Function · 0.70
getMethod · 0.45

Tested by

no test coverage detected