Skip to content

Commit 88aed47

Browse files
committed
Use existing method in solution to exercise 6.2
Closes marijnh#379
1 parent 979d649 commit 88aed47

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

code/solutions/06_2_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)