Skip to content

2LTech/deep-object-diff

 
 

Repository files navigation

Forked from mattphilipps/deep-object-diff

Deep difference between two Javascript objects

Installation

	yarn add @2ltech/deep-object-diff

	npm i --save @2ltech/deep-object-diff

Available functions

  • diff(originalObj, updatedObj) returns the difference of the original and updated objects

  • addedDiff(original, updatedObj) returns only the values added to the updated object

  • deletedDiff(original, updatedObj) returns only the values deleted in the updated object

  • updatedDiff(original, updatedObj) returns only the values that have been changed in the updated object

  • detailedDiff(original, updatedObj) returns an object with the added, deleted and updated differences

About

Deep diffs two objects, including nested structures of arrays and objects, and returns the difference. ❄️

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • TypeScript 99.1%
  • JavaScript 0.9%