Skip to content

Commit 34c6ca6

Browse files
Putnam14marijnh
authored andcommitted
Update 6.3 solution to match code from 6.2
In the solution for 6.2 you used the 'this.has(value)' method, instead of 'this.members.includes(value)' in the 'add(value)' method. The code should be consistent considering the exercise says: // Your code here (and the code from the previous exercise)
1 parent a9852da commit 34c6ca6

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

code/solutions/06_3_iterable_groups.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ class Group {
44
}
55

66
add(value) {
7-
if (!this.members.includes(value)) {
7+
if (!this.has(value)) {
88
this.members.push(value);
99
}
1010
}

0 commit comments

Comments
 (0)