I have a JSON object called Menu which contains various menu items for my system that I am developing using VueJS + Vuetify. I need to filter these menu items based on the "text" field, regardless of position in the text and without differentiating between upper and lower case letters, similar to SQL's like '%filter%' query. It would be ideal if accents are also disregarded but not crucial.
If the search pattern matches a child node, should the parent node also be included in the filtered results? Is it possible to achieve this filtering behavior using a JavaScript function?
The structure of the menu is as shown below:
https://i.sstatic.net/8Dt9N.png
Here is the expected behavior after filtering: