mirror of
https://github.com/ruanyf/es6tutorial.git
synced 2025-05-28 21:32:20 +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(){
|
function next(){
|
||||||
if (current){
|
if (current){
|
||||||
var value = current.value;
|
var value = current.value;
|
||||||
var done = current.next === undefined;
|
var done = current.next === null;
|
||||||
current = current.next;
|
current = current.next;
|
||||||
return {
|
return {
|
||||||
done: done,
|
done: done,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user