1
0
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:
zhangbao 2017-12-26 09:03:51 +08:00 committed by GitHub
parent 488983f6d4
commit 5bda2fdb53
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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() {