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

Function endsOf

ark/type/deferred.ts:275–284  ·  view source on GitHub ↗
(
	min: number | undefined,
	max: number | undefined
)

Source from the content-addressed store, hash-verified

273
274/** the ends of a range that includes its bounds */
275const endsOf = (
276 min: number | undefined,
277 max: number | undefined
278): Ends | undefined =>
279 min === undefined && max === undefined ?
280 undefined
281 : {
282 lows: min === undefined ? [] : [min],
283 highs: max === undefined ? [] : [max]
284 }
285
286// whether a range of one ends where a range of the other starts, wherever each
287// holds it

Callers 4

rangeFactsFunction · 0.85
scanRangeFunction · 0.85
endOfFunction · 0.85
boundMethodFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected