mirror of
https://github.com/flynx/types.js.git
synced 2025-10-29 02:20:07 +00:00
docs...
Signed-off-by: Alex A. Naanou <alex.nanou@gmail.com>
This commit is contained in:
parent
1b4f900c22
commit
36ca0cb91a
@ -1080,12 +1080,12 @@ for(var i of generator.iter([1, 2, 3])){
|
||||
|
||||
The following are equivalent:
|
||||
```javascript
|
||||
var b = generator.iter()
|
||||
var a = generator.iter()
|
||||
|
||||
var a = new generator.Generator()
|
||||
var b = new generator.Generator()
|
||||
```
|
||||
|
||||
But `Generator()` takes no arguments and thus can not be used as a wrapper.
|
||||
But `Generator()` takes no arguments and thus can not be used as a wrapper while `.iter(..)` is designed to accept an iterable value like an array object.
|
||||
|
||||
|
||||
### Generator instance iteration
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user