Add space after dot (#23137)

This commit is contained in:
Szymon Woźny
2018-11-17 06:17:55 +01:00
committed by Manish Giri
parent 25755ad7ca
commit 8d09956713

View File

@ -17,7 +17,7 @@ for (const fruit of fruits)
The above snippet is going to return us the items in the array above. The above snippet is going to return us the items in the array above.
## for-of loop in knowing index ## for-of loop in knowing index
What if we want to know the index of each item too.In that case we can iterate over fruits.entries() which gives us the ArrayIterator. What if we want to know the index of each item too. In that case we can iterate over fruits.entries() which gives us the ArrayIterator.
```javascript ```javascript
for (const fruit of fruits.entries()) for (const fruit of fruits.entries())