Skip to content

Instantly share code, notes, and snippets.

View arrrrny's full-sized avatar
Building Hyper A|

Ahmet TOK arrrrny

Building Hyper A|
View GitHub Profile
@Yimiprod
Yimiprod / difference.js
Last active April 6, 2025 09:16
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) {