I have tried to below way to get the duplicate record, but I got the only filtered record means only an uniq record gets.
var filtered = _.uniqWith(form_data.itemRows, _.isEqual);
ArrayList:
[
{
"PlanId": "",
"Id": "",
"Type": "Beverages",
"Beverages": "2019/12/7 11:40",
"Frequency": 1
},
{
"PlanId": "",
"Id": "",
"Type": "Medication",
"Beverages": "2019/12/7 11:30",
"Frequency": 1
},
{
"PlanId": "",
"Id": "",
"Type": "Medication",
"Beverages": "2019/12/7 11:30",
"Frequency": 1
}
]
Type, Beverages, Frequency wise get the duplicate records.