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

Method hasMember

app/models/CourseInstance.js:89–92  ·  view source on GitHub ↗
(userID, opts)

Source from the content-addressed store, hash-verified

87 }
88
89 hasMember (userID, opts) {
90 const userId = userID.id || userID
91 return Array.from((this.get('members') || [])).includes(userId)
92 }
93 }
94 CourseInstance.initClass()
95 return CourseInstance

Callers 1

exportStudentProgressFunction · 0.80

Calls 1

getMethod · 0.45

Tested by

no test coverage detected