hi this is my array
this.testArray = [{ "office_id": "1", "officename": "sun" }, { "office_id": "2", "officename": "moon" }];
i want to check whether officename sun is there or not. I tried used include
this.testArray.includes("sun")
but this will work for one dimension array( it will return true). how if I want to use it for this multidimension array. it always return false.
** this.testArray.includes("sun") This will work with this array
**
this.testArray = ["sun","moon","stars" }];
it will return true it exist. but it is not working with my array the up one.