Package: effect
Module: Duration
Returns true if the duration is negative (strictly less than zero).
Example (Checking for negative durations)
import { Duration } from "effect"
console.log(Duration.isNegative(Duration.seconds(-5))) // true
console.log(Duration.isNegative(Duration.zero)) // false
console.log(Duration.isNegative(Duration.negativeInfinity)) // true
Signature
declare const isNegative: (self: Duration) => boolean
Since v4.0.0