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

Function pathEquals

ark/schema/shared/errors.ts:248–252  ·  view source on GitHub ↗
(l: array<PropertyKey>, r: array<PropertyKey>)

Source from the content-addressed store, hash-verified

246
247// compared from the end, where paths usually differ
248const pathEquals = (l: array<PropertyKey>, r: array<PropertyKey>) => {
249 if (l.length !== r.length) return false
250 for (let i = l.length - 1; i >= 0; i--) if (l[i] !== r[i]) return false
251 return true
252}
253
254// keeps the text a standalone validator wrote; its actual describes its data
255export const errorOfIssue = (

Callers 3

addErrorMethod · 0.85
failsAtBasisFunction · 0.85
writeAtPathsFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected