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

Method hashString

app/views/user/CertificatesView.js:44–46  ·  view source on GitHub ↗
(str)

Source from the content-addressed store, hash-verified

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
46 }
47
48 constructor (options, userID) {
49 super(options)

Callers 1

constructorMethod · 0.95

Calls 1

__range__Function · 0.70

Tested by

no test coverage detected