Merge two object arrays and remove duplicates using UnderscoreJS

A really quick solution is –

_.uniq(_.union(c1, c2), false, function(item, key, a){ return item.a; });

*NOTE: All the objects in both the Object Arrays should have the property ‘a’.