Javascript Array isEqual(anotherArray)
Array.prototype.isEqual = function (anotherArray) { if (this.length !== anotherArray.length) { return false; } else {/*from w w w .ja v a 2 s. c om*/ for (var i = 0; i < this.length; i++ ) { if (this[i].id !== anotherArray[i].id){ return false; } } return true; } };