how to delete the duplicate value from the array.
var list =[1,1,5,5,4,9]
my result will be
var list =[4,9]
how can I do by using lodash
You could check the index and last index of the actual value.
var list = [1, 1, 5, 5, 4, 9],
result = list.filter((v, _, a) => a.indexOf(v) === a.lastIndexOf(v));
console.log(result);
_.uniqBybut i need to delete the duplicate value from thelist