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

Function comparedOf

ark/aot/shadow.ts:949–954  ·  view source on GitHub ↗
(issues: KeptIssue[], writesInput: boolean)

Source from the content-addressed store, hash-verified

947
948// writing its input, a validator can change data an issue holds
949const comparedOf = (issues: KeptIssue[], writesInput: boolean) =>
950 writesInput ?
951 issues.map(issue =>
952 hasDomain(issue.data, "object") ? { ...issue, data: undefined } : issue
953 )
954 : issues
955
956const compare = (
957 pair: Pair,

Callers 2

validateBothFunction · 0.85
observeFunction · 0.85

Calls 2

hasDomainFunction · 0.90
mapMethod · 0.65

Tested by

no test coverage detected