Skip to content

Commit 5a3df7c

Browse files
authored
Update Iterators and Generators.md
Added "the" and a comma for clarity.
1 parent 9ec526c commit 5a3df7c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/documentation/copy/en/reference/Iterators and Generators.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ for (let i of list) {
5454
```
5555

5656
Another distinction is that `for..in` operates on any object; it serves as a way to inspect properties on this object.
57-
`for..of` on the other hand, is mainly interested in values of iterable objects. Built-in objects like `Map` and `Set` implement `Symbol.iterator` property allowing access to stored values.
57+
`for..of` on the other hand, is mainly interested in values of iterable objects. Built-in objects like `Map` and `Set` implement the `Symbol.iterator` property, allowing access to stored values.
5858

5959
```ts
6060
let pets = new Set(["Cat", "Dog", "Hamster"]);

0 commit comments

Comments
 (0)