Skip to content

Commit

Permalink
Forgot to reassign internal array
Browse files Browse the repository at this point in the history
  • Loading branch information
nmathew98 authored Oct 3, 2021
1 parent 91a12c8 commit 69d4f15
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion data_structures/Sets/sets.ts
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ class SetImpl<T> implements ISet<T> {
}

public delete(value: T): ISet<T> {
this._set.filter(element => element !== value);
this._set = this._set.filter(element => element !== value);

return this;
}
Expand Down

0 comments on commit 69d4f15

Please sign in to comment.