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

Function intersectValues

ark/sets/structure/structure.ts:42–45  ·  view source on GitHub ↗
(lValue: BaseRoot, rValue: BaseRoot)

Source from the content-addressed store, hash-verified

40
41 // a key's transforms apply in turn once each value allows its input
42 const intersectValues = (lValue: BaseRoot, rValue: BaseRoot) =>
43 lValue.alters && rValue.alters ?
44 intersectNodesRoot(lValue._in, rValue._in, $)
45 : intersectNodesRoot(lValue, rValue, $)
46 const value = intersectValues(l.value, r.value)
47 // a default is a value of its key, which the signature checks as it would
48 // one the data held

Callers 1

intersectPropsAndIndexFunction · 0.85

Calls 1

intersectNodesRootFunction · 0.90

Tested by

no test coverage detected