Closed harryghgim closed 2 years ago
Hi. Thanks for reply.
When I was testing with the answer against a case where two empty objects are compared, I realised{}
and []
comparison returned true
. So I thought it'd be nice to cover that case as well and I made PR.
If the code addition is something small ok to be ignored as you deem, feel free to decline PR.
Ah, I see what you mean. But I'd say it is okay if this returns true for {}
and []
, in order to keep the solution simple.
What problem with the existing code does this solve?