Here is my function:
And here is my status:
I can't figure out what is wrong!
Thanks in advance!
hrusi the problem is that you iterate over the first object and analyze its keys. But what if obj2 has a couple of extra fields?
obj2
Your code will return true when in fact the result should be false.
true
false
Coderslang_Master Got it, Thanks!