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

Function isSubset

ark/sets/algebra.ts:6–7  ·  view source on GitHub ↗
(l: Schema, r: Schema)

Source from the content-addressed store, hash-verified

4
5/** every value l accepts, r accepts (false if that can't be proven) */
6export const isSubset = (l: Schema, r: Schema): boolean =>
7 parse(l).extends(parse(r))
8
9/** l and r accept the same values (false if that can't be proven) */
10export const isEqual = (l: Schema, r: Schema): boolean =>

Callers 2

isEqualFunction · 0.85
algebra.test.tsFile · 0.85

Calls 2

parseFunction · 0.90
extendsMethod · 0.80

Tested by

no test coverage detected