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
When you check against removed or undefined attributes it works fine:
✔️ diff({a:{}}, {a:undefined}) returns {a: undefined}
✔️ diff({a:{}}, {}) returns {a: undefined}
But when you invert and add/change to an empty object it differs depending if it was undefined or nonexistent before:
✔️ diff({}, {a:{}}) returns {a:{}}
❌ diff({a:undefined}, {a:{}}) returns {} instead of {a:{}}
The text was updated successfully, but these errors were encountered:
When you check against removed or undefined attributes it works fine:
✔️
diff({a:{}}, {a:undefined})
returns{a: undefined}
✔️
diff({a:{}}, {})
returns{a: undefined}
But when you invert and add/change to an empty object it differs depending if it was undefined or nonexistent before:
✔️
diff({}, {a:{}})
returns{a:{}}
❌
diff({a:undefined}, {a:{}})
returns{}
instead of{a:{}}
The text was updated successfully, but these errors were encountered: