mirror of
https://github.com/ruanyf/es6tutorial.git
synced 2025-05-25 03:02:21 +00:00
commit
e534d8bb23
@ -69,9 +69,9 @@ function makeIterator(array) {
|
||||
```javascript
|
||||
var it = idMaker();
|
||||
|
||||
it.next().value // '0'
|
||||
it.next().value // '1'
|
||||
it.next().value // '2'
|
||||
it.next().value // 0
|
||||
it.next().value // 1
|
||||
it.next().value // 2
|
||||
// ...
|
||||
|
||||
function idMaker() {
|
||||
|
Loading…
x
Reference in New Issue
Block a user