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