JSFiddle - React, Tailwind, and code Playground
by bingjie2680
JavaScript
var foo = [ { "a" : "1" }, { "b" : "2" }, { "a" : "1" } ];
foo2 = _.unique(foo, function(item, k, v){
return item.a;
});
console.log(foo2);
foo3 = _.unique(foo, 'a');
console.log(foo3);