Intl.DurationFormat
missing from library definitions #60608
Open
Description
⚙ Compilation target
ESNext
⚙ Library
ESNext
Missing / Incorrect Definition
Intl.DurationFormat
is missing. It's implemented in all browsers except Firefox.
Sample Code
new Intl.DurationFormat('en-US', { style: 'long' }).format({ hours: 5, minutes: 2, seconds: 42 })
// '5 hours, 2 minutes, 42 seconds'
Documentation Link
https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/DurationFormat