I have a datatable to which I add rows dynamically from 2 combos through js, in this way a row is generated with the 2 descriptions of the combos and in the value of the td I assign the id of the values of the combos, what I know This complicating thing is to validate that this combination of the combos cannot be added twice, but I don't know how to validate looking for those values within the datable.
If you want to do it with jquery I can tell you that you avoid more than 10 lines of code it's simpler, I know that dataTable is a jquery plugin but I don't know if you wanted to do it with normal javascript or using that library, if it's the latter tell me and I give you the example too.
I have solved it in the following way, passing the array and the object by parameter to a function that validates by comparing each of the properties.