Experimental: This is an experimental technology
Check the Browser compatibility table carefully before using this in production.
The abs()
method of Temporal.Duration
instances returns a new Temporal.Duration
object with the absolute value of this duration (all fields have the same magnitude, but sign becomes positive).