(self: Duration)
| 527 | * @since 4.0.0 |
| 528 | */ |
| 529 | export const isPositive = (self: Duration): boolean => { |
| 530 | switch (self.value._tag) { |
| 531 | case "Millis": |
| 532 | return self.value.millis > 0 |
| 533 | case "Nanos": |
| 534 | return self.value.nanos > bigint0 |
| 535 | case "Infinity": |
| 536 | return true |
| 537 | case "NegativeInfinity": |
| 538 | return false |
| 539 | } |
| 540 | } |
| 541 | |
| 542 | /** |
| 543 | * Returns the absolute value of the duration. |
nothing calls this directly
no outgoing calls
no test coverage detected