MCPcopy
hub / github.com/arktypeio/arktype / equals

Function equals

ark/schema/node.ts:386–389  ·  view source on GitHub ↗
(r: unknown)

Source from the content-addressed store, hash-verified

384 }
385
386 equals(r: unknown): boolean {
387 const rNode: BaseNode = isNode(r) ? r : this.$.parseDefinition(r)
388 return this.innerHash === rNode.innerHash
389 }
390
391 ifEquals(r: unknown): BaseNode | undefined {
392 return this.equals(r) ? this : undefined

Callers

nothing calls this directly

Calls 1

isNodeFunction · 0.90

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…