I need to compare two objects, and find out what properties are missing. The objects are fairly big, with several levels.
I will give short example of the type of object
How about use JSON.stringify to convert object to string, then do the string comparison:
JSON.stringify
JSON.stringify(UC) === JSON.stringify(UCToBeCompared)
By using this method, you have to make sure the objects don't have circular reference, otherwise JSON.stringify would throw an exception