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

Method numericalCourses

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

Source from the content-addressed store, hash-verified

109 }
110
111 numericalCourses () {
112 if (!__guard__(this.get('includedCourseIDs'), x => x.length)) { return utils.courseNumericalStatus.FULL_ACCESS }
113 const fun = (s, k) => {
114 return s + utils.courseNumericalStatus[k]
115 }
116 return _.reduce(this.get('includedCourseIDs'), fun, 0)
117 }
118
119 revoke (user, options) {
120 if (options == null) { options = {} }

Callers 3

applySpecificLicensesFunction · 0.95
enrolledUsersMethod · 0.80
unenrolledUsersMethod · 0.80

Calls 2

__guard__Function · 0.70
getMethod · 0.45

Tested by

no test coverage detected