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

Function Equivalence

packages/effect/src/Duration.ts:1218–1223  ·  view source on GitHub ↗
(self, that)

Source from the content-addressed store, hash-verified

1216 * @since 2.0.0
1217 */
1218export const Equivalence: Equ.Equivalence<Duration> = (self, that) =>
1219 matchPair(self, that, {
1220 onMillis: (self, that) => self === that,
1221 onNanos: (self, that) => self === that,
1222 onInfinity: (self, that) => self.value._tag === that.value._tag
1223 })
1224
1225/**
1226 * Returns the smaller of two Durations.

Callers 5

Cron.tsFile · 0.85
BigDecimal.tsFile · 0.85
Duration.tsFile · 0.85
[Equal.symbol]Function · 0.85
valueFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected