From 69d4f15230cf8ecb6672b583aea92762160d64c9 Mon Sep 17 00:00:00 2001 From: Naveen Mathew <55116576+nmathew98@users.noreply.github.com> Date: Sun, 3 Oct 2021 16:11:06 +1300 Subject: [PATCH] Forgot to reassign internal array --- data_structures/Sets/sets.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; }