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 up
Add Map and Set support to deepEqual() #254
In catbox, I have a need to add tests that compares the
Regarding the implementation, I had to define what a deep-equal on a
Set is deep equal when…
Map is deep equal when…
For this, I haven't included an ordered comparison. This makes keys special, since they are only compared using
The implementation is based on the rework in #242.
Hmm, a full sweep for deep
FYI, I'm already using this branch to support my new addon here: https://github.com/kanongil/granola.
Updated to check all elements for deep
The implementation has a fast path for comparing sets that only contain simple types and/or similar object references. If this fails, an exhaustive search is performed, optimized for ordered elements.