[ad_1]
const filtered = values.filter(ele => ele.name == "YOUR_CONDITION");
if(filtered.length > 1){
// array contains duplicate elements.
}
1
[ad_2]
solved how check the json array contains repeated values in Nodejs?
[ad_1]
const filtered = values.filter(ele => ele.name == "YOUR_CONDITION");
if(filtered.length > 1){
// array contains duplicate elements.
}
1
[ad_2]
solved how check the json array contains repeated values in Nodejs?