Add space after dot (#23137)
This commit is contained in:
committed by
Manish Giri
parent
25755ad7ca
commit
8d09956713
@ -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())
|
||||||
|
Reference in New Issue
Block a user