MCPcopy Create free account
hub / github.com/arktypeio/arktype / add

Function add

ark/type/runtime.ts:1300–1306  ·  view source on GitHub ↗
(part: string)

Source from the content-addressed store, hash-verified

1298 let high = 0x41c6ce57
1299 // a part's end is mixed in too, so no two splits of one text agree
1300 const add = (part: string) => {
1301 for (let i = 0; i <= part.length; i++) {
1302 const code = i < part.length ? part.charCodeAt(i) : 0x10ffff
1303 low = Math.imul(low ^ code, 2654435761)
1304 high = Math.imul(high ^ code, 1597334677)
1305 }
1306 }
1307 const prototype = prototypeOf(value)
1308 add(
1309 Array.isArray(value) ? "array"

Callers 1

digestOfFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected