lodash find difference between two arrays code example
Example 1: lodash get difference between two arrays of objects
var presents = _.intersectionWith(array1, array2, _.isEqual);
var dif = _.differenceWith(array1, array2, _.isEqual);
Example 2: diff two arrays lodash
_.difference([2, 1], [2, 3]);
// => [1]