MCPcopy Index your code
hub / github.com/Effect-TS/effect / isZero

Function isZero

packages/effect/src/Duration.ts:220–232  ·  view source on GitHub ↗
(self: Duration)

Source from the content-addressed store, hash-verified

218 * @category guards
219 */
220export const isZero = (self: Duration): boolean => {
221 switch (self.value._tag) {
222 case "Millis": {
223 return self.value.millis === 0
224 }
225 case "Nanos": {
226 return self.value.nanos === bigint0
227 }
228 case "Infinity": {
229 return false
230 }
231 }
232}
233
234/**
235 * @since 2.0.0

Callers 1

formatFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected