js:
var data = [ {fname: 'Roy', lname: 'Red'}, {fname: 'Gary', lname: 'Green'}, {fname: 'Bob', lname: 'Blue'}, {fname: 'Roy', lname: 'Red'}, ]; var dataUpd = R.pipe( R.uniq, //R.uniqBy(R.props(['fname', 'lname'])), //R.uniqBy(R.identity), )(data); alert( JSON.stringify(dataUpd) );
Result: