Hi i want to remove duplicate records from attribute in js lightning. component.get("v.recordLeads"); I suppose we have to use lodash function here. Something like this
<aura:attribute name="recordLeads" type="Lead[]" />
var con=component.get("v.convertLeads");
var result= _.uniq(con);