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

Function hashString

src/importer/storage.ts:83–91  ·  view source on GitHub ↗
(str: string)

Source from the content-addressed store, hash-verified

81}
82
83function hashString(str: string): number {
84 let hash = 0;
85 for (let i = 0; i < str.length; i++) {
86 const char = str.charCodeAt(i);
87 hash = (hash << 5) - hash + char;
88 hash = hash & hash;
89 }
90 return hash;
91}

Callers 1

stateKeyFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected