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
If your situation allows it I'd suggest using http://underscorejs.org/ library, rather than rolling your own solution (or go look at their implementation). In JS deep object comparison is sometimes not trivial. If you decide to roll your own solution, you would recursively iterate through the properties and compare them one by one (ignoring native / built-in object properties and perhaps inherited from some prototype).
I'll gladly elaborate if you'd like.