Skip to content

Commit 33e3499

Browse files
authored
Merge pull request #483 from savylovskij/patch-1
Update article.md
2 parents b0d0877 + 6799024 commit 33e3499

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

Diff for: 1-js/05-data-types/06-iterable/article.md

+3
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,9 @@ range[Symbol.iterator] = function() {
4646

4747
// 2. Далі, for..of працює тільки з цим ітератором, запитуючи у нього наступні значення
4848
return {
49+
current: this.from,
50+
last: this.to,
51+
4952
next() {
5053
// 4. він повинен повертати значення як об’єкт {done:.., value :...}
5154
if (this.current <= this.last) {

0 commit comments

Comments
 (0)