I have an array that contains the tags values, now how to return all the respective tag objects that contain a search tag ??
I have an array like this:
[
{"tags": ["a"]},
{"tags": ["a","b"]},
{"tags": ["a","c"]},
{"tags": ["a","b","c"]},
{"tags": ["a","d"]}
]
For "a" it should return all the objects
For "b" it should return 2 objects (index 1 and index 4)
For "c" it should return 2 objects (index 2 and index 3)