* Compare two durations for equality. * Note: Durations with different representations may be equal (e.g., P14D = P2W)
(other: DurationValue)
| 1402 | * Note: Durations with different representations may be equal (e.g., P14D = P2W) |
| 1403 | */ |
| 1404 | public equals(other: DurationValue): boolean { |
| 1405 | return ( |
| 1406 | this.#months === other.#months && |
| 1407 | this.#days === other.#days && |
| 1408 | this.#seconds === other.#seconds && |
| 1409 | this.#nanoseconds === other.#nanoseconds |
| 1410 | ); |
| 1411 | } |
| 1412 | } |
| 1413 | |
| 1414 | /** |
no outgoing calls
no test coverage detected