MCPcopy Index your code
hub / github.com/Effect-TS/effect / string

Function string

packages/effect/src/Hash.ts:126–132  ·  view source on GitHub ↗
(str: string)

Source from the content-addressed store, hash-verified

124 * @category hashing
125 */
126export const string = (str: string) => {
127 let h = 5381, i = str.length
128 while (i) {
129 h = (h * 33) ^ str.charCodeAt(--i)
130 }
131 return optimize(h)
132}
133
134/**
135 * @since 2.0.0

Callers 2

hashFunction · 0.70
structureKeysFunction · 0.70

Calls 1

optimizeFunction · 0.70

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…