json-diff3
v1.1.1
Published
three way merge json structures
Downloads
4
Maintainers
Readme
Three-way JSON Merge
Experimental 3-way JSON merge library.
Usage:
import { diff3 } from 'json-diff3';
const state1 = {
hello: 1,
world: 2,
};
const state2 = {
hello: 1,
world: 2,
a: 2,
};
const state3 = {
hello: 1,
world: 3,
};
diff3(state1, state2, state3)
// =>
// {
// hello: 1,
// world: 3,
// a: 2,
// }