isdiff
v1.0.3
Published
Find Differences Between two JavaScript Objects
Downloads
5
Readme
Find Differences Between two JavaScript Objects
Install
npm install isdiff
Usage
import {
isdiff, isdiffWithoutCycle,
equal, equalWithoutCycle,
} from 'isdiff';
console.log(isdiffWithoutCycle({ a: 1, b: 1 }, { a: 1, b: 1 })); // false
const obj1 = { b: 1 };
obj1.a = obj1;
console.log(isdiff(obj1, { a: {}, b: 1 })); // true