I used the filter()
method to iterate over the array of object. In objectItems
has some array of object items. I have iterate over the array and checked & compaire eventId & productId
, if eventId not equal 3
& productId not equal 8
in object objectItems meets those conditions.