Comparing array items by identifier
reponemec opened this issue · 0 comments
reponemec commented
Is it possible to compare array items by specified identifier? For example by id, so left[0] to right[0], left[2] to right[1]? (Zero based indexed):
var left = [
{
"Id": 1,
"Name": "red"
},
{
"Id": 2,
"Name": "green"
},
{
"Id": 3,
"Name": "blue"
}
];
var right = [
{
"Id": 1,
"Name": "red"
},
{
"Id": 3,
"Name": "black"
}
]