Join GitHub today
GitHub is home to over 40 million developers working together to host and review code, manage projects, and build software together.
Sign upHoek.deepEqual({a: 'foo'}, {a: 'foo', b: 'bar'}) return true #130
Comments
This comment has been minimized.
This comment has been minimized.
This looks like a duplicate of #127. It should be fixed in the next release. |
This comment has been minimized.
This comment has been minimized.
Ok perfect. Thanks! |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hi,
I have a problem with deepEqual(a,b).
It does not return if a is strictly equal to b. But if b is included in a.
Hoek.deepEqual({a: 'foo', b: 'bar'}, {a: 'foo'}) // return false (a is not included in b)
Hoek.deepEqual({a: 'foo'}, {a: 'foo', b: 'bar'}) // return true (a is included in b, but a != b)
I guess, the comparison is based on the keys of the first object?
Thanks,