Experimental: This is an experimental technology
Check the Browser compatibility table carefully before using this in production.
The valueOf()
method of Temporal.Duration
instances throws a TypeError
, which prevents Temporal.Duration
instances from being implicitly converted to primitives when used in arithmetic or comparison operations.