1.0.2 • Published 2 years ago

@mallusrgreat/object-difference v1.0.2

Weekly downloads
-
License
MIT
Repository
github
Last release
2 years ago

Object Difference

This package helps you get all (and only) the differences between two objects.

import { objectDifference } from "@mallusrgreat/object-difference";
// or
const { objectDifference } = require("@mallusrgreat/object-difference");

console.log(
  objectDifference(
    {
      test: "abc",
      one: 1,
      three: 4,
    },
    {
      test: "123",
      one: 1,
      three: 3,
    }
  )
);

Logs:

{
  "test": {
    "old": "abc",
    "new": "123"
  },
  "three": {
    "old": 4,
    "new": 3
  }
}
1.0.2

2 years ago

1.0.1

2 years ago

1.0.0

2 years ago