We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents b0d0877 + 6799024 commit 33e3499Copy full SHA for 33e3499
1-js/05-data-types/06-iterable/article.md
@@ -46,6 +46,9 @@ range[Symbol.iterator] = function() {
46
47
// 2. Далі, for..of працює тільки з цим ітератором, запитуючи у нього наступні значення
48
return {
49
+ current: this.from,
50
+ last: this.to,
51
+
52
next() {
53
// 4. він повинен повертати значення як об’єкт {done:.., value :...}
54
if (this.current <= this.last) {
0 commit comments