I want to check if values in one array is present in object key of object array. For example: arr = ["id1", "id2"]
objectArr = [{id: "id1"}]
I want to throw not found error in this case when id2 is not present in id of object array. Help of any kind would be appreciated!