Update formatSeconds.md

fix spaces
This commit is contained in:
shanyuhai123
2021-05-09 17:51:32 +08:00
committed by GitHub
parent 82770125cf
commit 53175da13f

View File

@ -14,8 +14,8 @@ const formatSeconds = s => {
if (s < 0) s = 0;
return [s / 3600, s / 60 % 60, s % 60]
.map(v => `${Math.floor(v).toString().padStart(2, '0')}`)
.join(':');
.map(v => `${Math.floor(v).toString().padStart(2, '0')}`)
.join(':');
};
```