Anyone knows a library where you can get json modifications as a json:
Example:
const state = {a: 3};
const operations = withState(state, state => { return {...state, b: 3} };
console.log(operations); // Something similar to [{type: 'set', key: 'b', value: 3}]
// and also ability to rebuild the state from operations (reverse)
1