There is a list a=["a","a","b"] i want to remove "a" from the list but
Hi team, There is a list a=["a","a","b"] i want to remove "a" from the list but when i use . remove it removes only the first "a" how can i remove all a's from the list
2 Answers
Know the answer? Post it. Somebody with the same question will find it here.

Rajanikant HawaldarRank #107 · 20.6K reputationPosted Mar 25, 2021, 2:29 AM EDT
Jaimin ShethiyaRank #177 · 13.7K reputationPosted Mar 25, 2021, 1:40 AM EDT
can you please tried the below statement and checked.
var a=["a","a","b"];
a.filter(function (s) { return s != "a" });
Thanks