Skip to content

Commit 0efec06

Browse files
UltComboTravis CI
authored and
Travis CI
committed
"JavaScript Iterables and Iterators" article: improve example as per comment thread: http://jsrocks.org/2015/09/javascript-iterables-and-iterators/#comment-2264161423
1 parent 4acd2fc commit 0efec06

File tree

5 files changed

+5
-5
lines changed

5 files changed

+5
-5
lines changed

2015/09/javascript-iterables-and-iterators/index.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -382,7 +382,7 @@ <h2 id="iterators">Iterators</h2>
382382
return {
383383
next: () =&gt; {
384384
let value = this[index];
385-
let done = index === this.length;
385+
let done = index &gt;= this.length;
386386
index++;
387387
return { value, done };
388388
}

cn/2015/09/javascript-iterables-and-iterators/index.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -390,7 +390,7 @@ <h2 id="iterators">Iterators</h2>
390390
return {
391391
next: () =&gt; {
392392
let value = this[index];
393-
let done = index === this.length;
393+
let done = index &gt;= this.length;
394394
index++;
395395
return { value, done };
396396
}

cn/rss.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
<description>A collaborative website about the latest JavaScript features and tools.</description>
77
<managingEditor>JS Rocks</managingEditor>
88
<webMaster>JS Rocks</webMaster>
9-
<pubDate>Fri, 09 Oct 2015 03:03:00 GMT</pubDate>
9+
<pubDate>Sat, 17 Oct 2015 00:32:15 GMT</pubDate>
1010
<language>cn</language>
1111
<atom:link href="http://jsrocks.org/cn/rss.xml" rel="self" type="application/rss+xml" />
1212

pt-br/rss.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
<description>A collaborative website about the latest JavaScript features and tools.</description>
77
<managingEditor>JS Rocks</managingEditor>
88
<webMaster>JS Rocks</webMaster>
9-
<pubDate>Fri, 09 Oct 2015 03:03:00 GMT</pubDate>
9+
<pubDate>Sat, 17 Oct 2015 00:32:15 GMT</pubDate>
1010
<language>pt-br</language>
1111
<atom:link href="http://jsrocks.org/pt-br/rss.xml" rel="self" type="application/rss+xml" />
1212

rss.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
<description>A collaborative website about the latest JavaScript features and tools.</description>
77
<managingEditor>JS Rocks</managingEditor>
88
<webMaster>JS Rocks</webMaster>
9-
<pubDate>Fri, 09 Oct 2015 03:03:00 GMT</pubDate>
9+
<pubDate>Sat, 17 Oct 2015 00:32:15 GMT</pubDate>
1010
<language>en</language>
1111
<atom:link href="http://jsrocks.org/rss.xml" rel="self" type="application/rss+xml" />
1212

0 commit comments

Comments
 (0)