Porównaj 2 tablice obiektów za pomocą podkreślenia, aby znaleźć różnicę

Mam 2 tablice, jedna jest newVal, a druga origVal definiuj

orig:

[
{"ListingId":1762276,"Rating":3,"ListPrice":7411828,"PropertyType":"Residential"},
{"ListingId":1826692,"Rating":3,"ListPrice":650000,"PropertyType":"Residential"},
{"ListingId":1833283,"Rating":4,"ListPrice":950000,"PropertyType":"Residential"},
{"ListingId":1832134,"Rating":3,"ListPrice":850000,"PropertyType":"Residential"},
{"ListingId":1829932,"Rating":4,"ListPrice":750000,"PropertyType":"Residential"},
{"ListingId":1827548,"Rating":5,"ListPrice":650000,"PropertyType":"Residential"}
]

Nowy:

[
{"ListingId":1762276,"Rating":2,"ListPrice":7411828,"PropertyType":"Residential"},
{"ListingId":1826692,"Rating":3,"ListPrice":650000,"PropertyType":"Residential"},
{"ListingId":1833283,"Rating":4,"ListPrice":950000,"PropertyType":"Residential"},
{"ListingId":1832134,"Rating":3,"ListPrice":850000,"PropertyType":"Residential"},
{"ListingId":1829932,"Rating":4,"ListPrice":750000,"PropertyType":"Residential"},
{"ListingId":1827548,"Rating":5,"ListPrice":650000,"PropertyType":"Residential"}
]

Jeśli zmienię jedną z ocen w nowej, jak mogę wykryć tę zmianę i pobrać zmieniony obiekt?

Będzie tylko jedna zmiana na raz, chociaż nie sądzę, żeby to miało znaczenie.

FYI: Te tablice są produkowane z kolekcji Anjularjs

$scope.$watchCollection('items', function (new, old) {

}, true); 

Dziękuję, Stephen

questionAnswers(3)

yourAnswerToTheQuestion