I want to fetch an object array, check if multiple properties are duplicate at the same time. Finally, the duplicate elements are meant to be alerted. i.e. for the array:
[
{
"language" : "english",
"type" : "a",
"value" : "value1"
},
{
"language" : "english",
"type" : "a",
"value" : "value2"
},
{
"language" : "english",
"type" : "b",
"value" : "value3"
},
{
"language" : "spanish",
"type" : "a",
"value" : "valor1"
}
];
The alert should be: "Too many elements with language english and type a".
I sought for it, yet the answers were either dirty map/reduce implementations that made VisualStudio2015 pissed off or finding a full duplicates (not only based on specific properties)