I\'d like to use the _.union
function to create a union of two arrays of objects. Union works with arrays of primitives only as it uses === to examine if two va
_.unionBy(array1,array2,'propname');
_.unionWith(array1,array2, _.isEqual);
_.unionWith(array1,array2, function(obj,other){ return obj.propname.toLowercase() === other.propname.toLowercase(); });
propname is name of key property of your object.