Skip to content
Advertisement

How to filter array with children are array?

Fillter in an array

JavaScript

But if an array consists of many arrays inside, I am not finding a reasonable way to solve it.

Example: with this array

JavaScript

How to fillter ‘a’ and get result

JavaScript

Advertisement

Answer

Use filter and some

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