🦖 Temporal.Duration.prototype.abs()
🟧 Limited availability

https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Temporal/Duration/abs

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).

#webdev #JavaScript

Temporal.Duration.prototype.abs() - JavaScript | MDN

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).

MDN Web Docs