Experimental: This is an experimental technology
Check the Browser compatibility table carefully before using this in production.
The Temporal.Duration.compare()
static method returns a number (-1, 0, or 1) indicating whether the first duration is shorter, equal to, or longer than the second duration.