underscore js compare two arrays of objects
There will only be one change at a time, although I dont think that matters. FYI: These arrays are being produced from an Anjularjs watchcollection. I have defined this in the isEqual function such that an array is equal to another array if they are the same length and the objects have the same id in the same order. Next, we need to understand what it means to remove duplicates.