mirror of
https://github.com/ruanyf/es6tutorial.git
synced 2024-04-21 12:32:22 +00:00
docs:Fix typo
The type of `value` is number, not string.
This commit is contained in:
+3
-3
@@ -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() {
|
||||
|
||||
Reference in New Issue
Block a user