93dd2b2f0612549d6f20fb6f311d9990d318d3a5
When maxDecimalPoints truncates a unit count to exactly 1, the rendered
number showed 1 while the word was pluralized from the raw count (for
example humanizeDuration(1500, { maxDecimalPoints: 0 }) returned
"1 seconds"). Pluralize from the normalized count that is actually
displayed so the number and word agree.
Description
My contributions to EvanHahn/HumanizeDuration.js: 2 commits
71 KiB
0 Stars
1 Watchers
0 Forks
Languages
JavaScript
100%