I have to find clicked id inside the 2D array and i have tried with find function but its not working as expected i have attached my console image tell me anyone how to fix this?
var matchedObject = self.selectedSubCategoryArray.find(x=>x === category.keyId);

sir,category.keyId is get after click on the categoryTab and i have to search this category.keyId on a selectedSubCategoryArray if exist get the matched object but here arrray is 2dArray?
Ok, Solution is:
let matchedObject = [];
for(let key in self.selectedSubCategoryArray) {
if (key == category.keyId) {
matchedObject.push(self.selectedSubCategoryArray[key]);
}
}
its working sir thanks a lot.
sir how to find the index of 2D array indexOf is not working ?