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