object-changes
Version:
Compares two objects and returns the differences.
20 lines • 510 B
TypeScript
/** @module object-changes
*/
declare module "object-changes" {
/**
* @function
* @param {number} [compareValue]
* @returns {Object} Seconds passed since Unix epoch (01 January 1970)
* @example
* import objectChanges from "object-changes"
* const result = objectChanges({
* unchanged: 2,
* changed: 2
* },
* { unchanged: 2,
* changed: 3
* })
* // Result: {changed: 3}
*/
export default function(compareValue?: number): any;
}