Skip to content

Instantly share code, notes, and snippets.

View Valkendorm's full-sized avatar

Martin Asnong Valkendorm

  • Ubisoft Montreal
  • Montreal, Quebec, Canada
  • X @Valkendorm
View GitHub Profile
@Yimiprod
Yimiprod / difference.js
Last active August 7, 2025 14:25
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) {