lib/index.js
/*
  * params: options.oldObj, options.newObj

  * options.oldObj: The original object that you want to compare against. (Required)
  * options.newObj: The new object that you want to use to update the old object. (Required)

  * Flattens the old object and new object, then compares the result. 

  * Returns a diff object in the form of a patch doc.
  */


Flattens the old object and new object, then compares the result.

Returns a diff object in the form of a patch doc.
Flattens the old object and new object then compares the result . Returns a diff object in the form of a patch doc .
compare(options) {
		var oldObj = this.flatten({
			obj: options.oldObj
		})
		var newObj = this.flatten({
			obj: options.newObj
		})
		return jsonPatch.compare(oldObj, newObj)
	}
compare ( options ) { var oldObj = this . flatten ( { obj : options . oldObj } ) var newObj = this . flatten ( { obj : options . newObj } ) return jsonPatch . compare ( oldObj , newObj ) }
params: options.oldObj, options.newObj
 options.oldObj: The original object that you want to compare against.
params : options . oldObj options . newObj options . oldObj : The original object that you want to compare against .