mirror of
https://github.com/ruanyf/es6tutorial.git
synced 2025-05-29 05:42:20 +00:00
docs:Fix typo
The type of `value` is number, not string.
This commit is contained in:
parent
488983f6d4
commit
5bda2fdb53
@ -69,9 +69,9 @@ function makeIterator(array) {
|
|||||||
```javascript
|
```javascript
|
||||||
var it = idMaker();
|
var it = idMaker();
|
||||||
|
|
||||||
it.next().value // '0'
|
it.next().value // 0
|
||||||
it.next().value // '1'
|
it.next().value // 1
|
||||||
it.next().value // '2'
|
it.next().value // 2
|
||||||
// ...
|
// ...
|
||||||
|
|
||||||
function idMaker() {
|
function idMaker() {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user