Loading problem…
You are given two JSON-like objects, before and after. Return the structural difference between them as a flat list of operations.
A change record must be one of:
{ type: "added", path, value }{ type: "removed", path }{ type: "changed", path, value }Where:
path uses dot notation (user.profile.name)path for deterministic resultsImplement:
Rules:
after => addedbefore => removedchangedNaN equal to NaN