Experimental: This is an experimental technology
Check the Browser compatibility table carefully before using this in production.
The sign
accessor property of Temporal.Duration
instances returns 1
if this duration is positive, -1
if negative, and 0
if zero. Because a duration never has mixed signs, the sign of a duration is determined by the sign of any of its non-zero fields.