Lets say we create an array based on input json containing records of item, quantity, vendor, country.
Is there a way we can do a contains in array to find if there exists a record with certain vendor and country and retrieve those records which can be used for some other logic??
eg:
hairbrush | 10 | Philips | Thailand
hairbrush | 10 | XYZ | India
Straightener| 10 | XYZ | India
Epilator| 10 | XYZ | India
Epilator| 10 | Philips | Korea
Epilator| 10 | XYZ| Japan
if serached by vendor XYZ and country INdia
shoudl get following records
hairbrush | 10 | XYZ | India
Straightener| 10 | XYZ | India