File tree Expand file tree Collapse file tree 1 file changed +6
-6
lines changed Expand file tree Collapse file tree 1 file changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -22,16 +22,16 @@ const Title = styled.h1`
22
22
const codeES6 = `
23
23
class Pattern {
24
24
constructor(el) {
25
- this.index = 0;
26
- this.elements = el;
25
+ this.index = 0;
26
+ this.elements = el;
27
27
}
28
28
29
29
next() {
30
- return this.elements[this.index++];
30
+ return this.elements[this.index++];
31
31
}
32
32
33
33
hasNext() {
34
- return this.index < this.elements.length;
34
+ return this.index < this.elements.length;
35
35
}
36
36
}
37
37
@@ -47,10 +47,10 @@ function Pattern(el) {
47
47
48
48
Pattern.prototype = {
49
49
next: function() {
50
- return this.elements[this.index++];
50
+ return this.elements[this.index++];
51
51
},
52
52
hasNext: function() {
53
- return this.index < this.elements.length;
53
+ return this.index < this.elements.length;
54
54
}
55
55
};
56
56
You can’t perform that action at this time.
0 commit comments