Skip to content

Instantly share code, notes, and snippets.

View Chippd's full-sized avatar

Chris Dermody Chippd

View GitHub Profile
@Yimiprod
Yimiprod / difference.js
Last active October 31, 2024 09:41
Deep diff between two object, using lodash
/**
* This code is licensed under the terms of the MIT license
*
* Deep diff between two object, using lodash
* @param {Object} object Object compared
* @param {Object} base Object to compare with
* @return {Object} Return a new object who represent the diff
*/
function difference(object, base) {
function changes(object, base) {