differify-js
Version:
Differify allows you to get the diff between two entities (objects diff, arrays diff, date diff, functions diff, number diff, etc) very easily, quickly and in a friendly way.
20 lines • 424 B
JavaScript
/*!
* Copyright(c) 2020 Fabian Roberto Orue <fabianorue@gmail.com>
* BSD Licensed
*/
export function buildDiff(original, current, status, changes = 0) {
return {
original,
current,
status,
changes,
};
}
export function buildDeepDiff(data, status, changes = 0) {
return {
_: data,
status,
changes,
};
}
//# sourceMappingURL=property-diff-model.js.map