Trying to retrieve the internal array (tags) from the following structure:

"tags" array contains the tag with "function" values, to get this I use the following expression:
let func = parsed.filter(x => x.tags.filter(x => x.tag == "function"));
being parsed the structure, but the result is:
It is including an array that doesn't contain "function" value in the "tag" property. How can I get only the arrays that contain "function" values in the "tag" property?
