MCPcopy Create free account
hub / github.com/Effect-TS/effect / equalsOrTrue

Function equalsOrTrue

packages/effect/src/ui/Query.ts:6726–6732  ·  view source on GitHub ↗
(a: unknown, b: unknown)

Source from the content-addressed store, hash-verified

6724 }
6725 /** `Equal.equals`, true when it throws: a check that only reports never fails a run. */
6726 const equalsOrTrue = (a: unknown, b: unknown): boolean => {
6727 try {
6728 return Equal.equals(a, b)
6729 } catch {
6730 return true
6731 }
6732 }
6733 const isValidSuccess = (entry: Entry, value: unknown): boolean => {
6734 try {
6735 return entry.def.codec().isSuccess(value)

Callers 1

beginRunFunction · 0.85

Calls 1

equalsMethod · 0.80

Tested by

no test coverage detected