This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function findDifferences(objectA, objectB) { | |
var propertyChanges = []; | |
var objectGraphPath = ["this"]; | |
(function(a, b) { | |
if(a.constructor == Array) { | |
// BIG assumptions here: That both arrays are same length, that | |
// the members of those arrays are _essentially_ the same, and | |
// that those array members are in the same order... | |
for(var i = 0; i < a.length; i++) { | |
objectGraphPath.push("[" + i.toString() + "]"); |
NewerOlder