You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Would there be a problem with checking for reference equality between objects or arrays? Please correct me if I'm wrong or if this has been answered already, but it looks like object and array keys are always iterated even when it might be the same reference between obj and newObj.
I was using this to diff fairly large objects that can sometimes share a lot of internal references so I felt like this could really speed that up as it wouldn't need to iterate every single nested property when it's the same reference.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
-
Would there be a problem with checking for reference equality between objects or arrays? Please correct me if I'm wrong or if this has been answered already, but it looks like object and array keys are always iterated even when it might be the same reference between obj and newObj.
I was using this to diff fairly large objects that can sometimes share a lot of internal references so I felt like this could really speed that up as it wouldn't need to iterate every single nested property when it's the same reference.
Beta Was this translation helpful? Give feedback.
All reactions