공부
[JS] uniqBy array by Lodash
승가비
2020. 5. 17. 04:52
728x90
_.uniqBy(data, function (e) {
return e.id;
});
_.uniqBy(data, 'id');
https://stackoverflow.com/questions/31740155/lodash-remove-duplicates-from-array
Lodash remove duplicates from array
This is my data: [ { url: 'www.example.com/hello', id: "22" }, { url: 'www.example.com/hello', id: "22" }, { url: 'www.example.com/
stackoverflow.com
728x90