-
Notifications
You must be signed in to change notification settings - Fork 40
Open
Description
Today, when reserving the objectEqual function in this library while evaluating deep.equal call stacks in a chai test harness, I observed that when comparing objectEqual() from the default branch in extensiveDeepEqualByType) it sorts the keys.
Line 418 in 04d6da6
| leftHandKeys.sort(); |
Line 419 in 04d6da6
| rightHandKeys.sort(); |
Is it not more performant for large objects to just iterate over unsorted properties with something like hasOwnProperty on the rightHandProperty properties? If so, I can make a PR.
Metadata
Metadata
Assignees
Labels
No labels