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

Method getTitle

app/views/user/CertificatesView.js:39–42  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

37 }
38
39 getTitle () {
40 if (this.user?.broadName() === 'Anonymous' || !this.user) { return 'Certificate' }
41 return `Certificate: ${this.user.broadName()}`
42 }
43
44 hashString (str) {
45 return (__range__(0, str.length, false).map((i) => str.charCodeAt(i))).reduce((hash, char) => ((hash << 5) + hash) + char, 5381) // hash * 33 + c

Callers

nothing calls this directly

Calls 1

broadNameMethod · 0.80

Tested by

no test coverage detected