objectsDiff compares the attributes of an old and new virtual node, reporting which properties were added, removed, or changed so the DOM can be patched. section 7.4
Implement the comparison in three readable passes:
- Scan old-object keys and mark keys missing from the new object as removed. section 7.4
- Scan new-object keys and mark keys missing from the old object as added. section 7.4
- Scan new-object keys again and mark existing keys whose values differ as updated. section 7.4
- Return an object with added, removed, and updated arrays; favoring two clear new-key iterations keeps the implementation readable, though one pass could be more efficient. section 7.4
Input attributes
Comparing an old input-attributes object with a new one can report min as added, max as removed, and disabled as updated when its value changes from false to true. section 7.4
