Skip to content

Commit 48082d6

Browse files
committed
Fix typo
1 parent 17fb236 commit 48082d6

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

data-structures-in-javascript/set.es6.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ class Set {
2020
}
2121

2222
contains(value) {
23-
return this.values.indexOf(value) !== -1;
23+
return this.values.indexOf(value) !== -1;
2424
}
2525

2626
union(set) {

data-structures-in-javascript/set.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ Set.prototype.remove = function(value) {
1717
}
1818
};
1919
Set.prototype.contains = function(value) {
20-
return this.values.indexOf(value) !== -1;
20+
return this.values.indexOf(value) !== -1;
2121
};
2222
Set.prototype.union = function(set) {
2323
var newSet = new Set();

0 commit comments

Comments
 (0)