We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 17fb236 commit 48082d6Copy full SHA for 48082d6
data-structures-in-javascript/set.es6.js
@@ -20,7 +20,7 @@ class Set {
20
}
21
22
contains(value) {
23
- return this.values.indexOf(value) !== -1;
+ return this.values.indexOf(value) !== -1;
24
25
26
union(set) {
data-structures-in-javascript/set.js
@@ -17,7 +17,7 @@ Set.prototype.remove = function(value) {
17
18
};
19
Set.prototype.contains = function(value) {
Set.prototype.union = function(set) {
var newSet = new Set();
0 commit comments