MCPcopy Create free account
hub / github.com/codemix/graph / equals

Method equals

packages/graph/src/TemporalTypes.ts:1404–1411  ·  view source on GitHub ↗

* Compare two durations for equality. * Note: Durations with different representations may be equal (e.g., P14D = P2W)

(other: DurationValue)

Source from the content-addressed store, hash-verified

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/**

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected