This commit is contained in:
uetchy 2019-01-14 16:25:48 +09:00
parent 8e06ed973e
commit 76be781e57

View File

@ -10,7 +10,7 @@ $$
```js
const padSize = Math.ceil(Math.log10(arr.length + 1))
arr.forEach(async (item, index) => {
arr.forEach((item, index) => {
console.log(`${index.padStart(padSize, '0')}: ${item}`)
})
```