mirror of
https://github.com/ruanyf/es6tutorial.git
synced 2025-05-27 20:32:21 +00:00
doc(iterator): fix 示例代码
This commit is contained in:
parent
438e35c162
commit
39786a0f62
@ -181,7 +181,7 @@ Obj.prototype[Symbol.iterator] = function(){
|
||||
function next(){
|
||||
if (current){
|
||||
var value = current.value;
|
||||
var done = current.next === undefined;
|
||||
var done = current.next === null;
|
||||
current = current.next;
|
||||
return {
|
||||
done: done,
|
||||
|
Loading…
x
Reference in New Issue
Block a user