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

Function fnKey

ark/type/deferred.ts:657–661  ·  view source on GitHub ↗
(fn: object)

Source from the content-addressed store, hash-verified

655
656// what's the same of one function
657const fnKey = (fn: object) => {
658 let id = fnIds.get(fn)
659 if (!id) fnIds.set(fn, (id = ++fnCount))
660 return `#${id}`
661}
662
663const defaultKey = (of: Facts, value: unknown) =>
664 `${wrap(of)}=${

Callers 2

defaultKeyFunction · 0.85
deferred.tsFile · 0.85

Calls 2

getMethod · 0.65
setMethod · 0.45

Tested by

no test coverage detected