Skip to content

Commit eb183dc

Browse files
committed
Add for(... of ...) description to iterator
1 parent 287399c commit eb183dc

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

content/JavaScript/iterator.jsdoc

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,9 @@ Iterator : Object
22

33
An Iterator is an Object that returns a sequence of values.
44

5+
You can use the **for(var value of iterator) {}** to easily loop
6+
over the values in an iterator.
7+
58
Calling an ECMAScript 6 generator function (**function*() {}**) return
69
an Iterator.
710

0 commit comments

Comments
 (0)