From Dev.to
My Duration Formatter Broke in French. Intl.DurationFormat Doesn't.
Here's a function that ships in more codebases than anyone wants to admit: function formatDuration(hours, minutes, seconds) { const parts = []; if (hours > 0) parts.push(`${hours} hour${hours !==...
