From 562b0b5e07b52338a989f53a66951524cc81bff4 Mon Sep 17 00:00:00 2001 From: ruanyf Date: Tue, 7 Jun 2016 09:50:52 +0800 Subject: [PATCH] =?UTF-8?q?fix(iterator):=20=E4=BF=AE=E6=94=B9=E7=A4=BA?= =?UTF-8?q?=E4=BE=8B?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- docs/iterator.md | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/docs/iterator.md b/docs/iterator.md index 9f4bcd6..5c2d623 100644 --- a/docs/iterator.md +++ b/docs/iterator.md @@ -181,10 +181,9 @@ Obj.prototype[Symbol.iterator] = function() { function next() { if (current) { var value = current.value; - var done = current.next === null; current = current.next; return { - done: done, + done: false, value: value }; } else {