Skip to content
Advertisement

Javascript remove the occurrences of item by matching condition

I have an arrray as below:

JavaScript

I would like to get the result as

JavaScript

I have tried to using filter but I cannot get the output. Could anyone please help me for this?

Advertisement

Answer

JavaScript
User contributions licensed under: CC BY-SA
7 People found this is helpful
Advertisement