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
I like this idea. The internals could determine this basically for free (just updating a variable in a loop that already exists). Externally, it's more expensive to call Object.values and Object.keys like this on large objects.
Going further: Rather than a boolean areSame, make it an integer total that is 0 if the objects are the same, and +1 for every change, of any type. It's as cheap to calculate (update a variable in a loop that already exists), but gives more information.
basically, each diff type can have an additional flag,
areSame
, which is set true if the objects are the same.This functionality can be achieved with this:
The text was updated successfully, but these errors were encountered: