let array2 = [{id: 20,name: "adem"},{id: 30,name: "bilal"},{id: 40, name: "gexzu"}];
let obj = {id: 30,name: "bilal"};
let include7 = array2.some(val => {
return val.id === obj.id;
});
console.log(include7);
this question is return false how it fix this pro
your text
i expected true b/c tow are the same id number
New contributor
Adembilal Bilal is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.