simple diffing of objects and sets
Simple utility functions that give you diffs of objects or arrays with unique strings:
var before = key1: 1 key2: 2var after = key1: 2 key3: 4var diff = findDiffdictionarybefore after// returns:modified: 'key1' added: 'key3' deleted: 'key2'
Diffing arrays (must have unique strings as elements):
var before = '1''2''3''4'var after = '2''1''5'var diff = findDiffsetbefore after// returns:added: '5' deleted: '3' '4'