1.1.1 • Published 5 years ago

json-diff3 v1.1.1

Weekly downloads
2
License
Zlib
Repository
github
Last release
5 years ago

Three-way JSON Merge

CircleCI npm version codecov

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,
// }