diff --git a/data_structures/Sets/sets.ts b/data_structures/Sets/sets.ts index 02565138c1..555ce8823d 100644 --- a/data_structures/Sets/sets.ts +++ b/data_structures/Sets/sets.ts @@ -23,7 +23,7 @@ class SetImpl implements ISet { } public delete(value: T): ISet { - this._set.filter(element => element !== value); + this._set = this._set.filter(element => element !== value); return this; }