I have 2 nested objects which are different and I need to know if they have difference in one of their nested properties.
(我有2个不同的嵌套对象,我需要知道它们的嵌套属性之一是否有所不同。)
var a = {};
var b = {};
a.prop1 = 2;
a.prop2 = { prop3: 2 };
b.prop1 = 2;
b.prop2 = { prop3: 3 };
The object could be much more complex with more nested properties.
(具有更多嵌套属性的对象可能要复杂得多。)
But this one is a good example.(但这是一个很好的例子。)
I have the option to use recursive functions or something with lodash...(我可以选择使用递归函数或带有lodash的东西...)
ask by JLavoie translate from so
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…