Below are the given input
const category = "Western Food"
const header = "Lamb chops"
Below is the array that needs to be filtered
const data = [
{
category: "Western Food",
tabs: [
{
header: "Pork chops"
},
{
header: "Lamb chops"
},
]
}
]
Output (Index of Lamb chops)
Output = 1