UNPKG

@bluelovers/deep-diff

Version:

Javascript utility for calculating deep difference, capturing changes, and applying changes across objects; for nodejs and the browser.

16 lines (12 loc) 209 B
var diff = require('../'); var left = { left: 'yes', right: 'no', }; var right = { left: { toString: true, }, right: 'no', }; console.log(diff(left, right)); // eslint-disable-line no-console