Say I have an array which consists of multiple duplicates
I wish to create a condition that looks at the ID and checks:
IF there is an object with multiple ID's AND this object also has a duplicate status AND duplicate dates, then console.log something
So in the table above, it should only show the object with the ID of 123, that has a status of ACTIVE and a date of 2023-01-01
Can you use indexOf for this purpose? I have used this method before with numbers, but as I said, in this case I don't want it to find ALL duplicates. I only want it to find duplicates that meet the conditions as stated above.