isEqual

1.0.3 • Public • Published

Find Differences Between two JavaScript Objects

Install

npm install -g objisequal

Then

in your index.js

    var fun = require('objisequal');

Use the function

    var result = fun(obj1, obj2);

or

    var result = fun(obj1, obj2, false);

Return an array.Like this: (Every item show whether the value in obj1 and obj2 is equal.)

    ['true','false',['true']]

Also you can

    var result = function_name(obj1, obj2, true);
    console.log(result);     //true or false

Only return true or false .

Readme

Keywords

none

Package Sidebar

Install

npm i isEqual

Weekly Downloads

119

Version

1.0.3

License

ISC

Last publish

Collaborators

  • zhang-zhao