I have a nested "main" array and I am looking to return the results (the entire nested array) for elements matched in a second "match" array. I have been able to return the first value of the arrays desired output using (main && match) but I can find a way into the nested array.
Main:
[[111, [100,101,102]], [222, [200,201,202]], [333, [300,301,302]], [444, [400,401,402]], [555, [500,501,502]], [666, [600,601,602]], [777, [700,701,702]]]
Match:
[222,555,666]
Desired Results:
[[222, [200,201,202]], [555, [500,501,502]], [666, [600,601,602]]]