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 {