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

Function holding

ark/type/deferred.ts:260–272  ·  view source on GitHub ↗
(...held: Facts[])

Source from the content-addressed store, hash-verified

258 : (l ?? r)
259
260const holding = (...held: Facts[]): Holding => {
261 let bits = 0
262 let ends: Ends | undefined
263 for (const f of held) {
264 bits |= holds(f)
265 ends = joinEnds(ends, f.ends)
266 }
267 return {
268 narrowedWithin: (bits & holdsNarrow) !== 0,
269 unitsWithin: (bits & holdsUnit) !== 0,
270 ends
271 }
272}
273
274/** the ends of a range that includes its bounds */
275const endsOf = (

Callers 5

fixedDepthOfMethod · 0.85
arrayFactsFunction · 0.85
scanUncachedFunction · 0.85
deferred.tsFile · 0.85
instantiateFunction · 0.85

Calls 2

joinEndsFunction · 0.85
holdsFunction · 0.70

Tested by

no test coverage detected