We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 688814a commit 48f81c1Copy full SHA for 48f81c1
src/Layout.jsx
@@ -22,16 +22,16 @@ const Title = styled.h1`
22
const codeES6 = `
23
class Pattern {
24
constructor(el) {
25
- this.index = 0;
26
- this.elements = el;
+ this.index = 0;
+ this.elements = el;
27
}
28
29
next() {
30
- return this.elements[this.index++];
+ return this.elements[this.index++];
31
32
33
hasNext() {
34
- return this.index < this.elements.length;
+ return this.index < this.elements.length;
35
36
37
@@ -47,10 +47,10 @@ function Pattern(el) {
47
48
Pattern.prototype = {
49
next: function() {
50
51
},
52
hasNext: function() {
53
54
55
};
56
0 commit comments