i\'m trying to use includes to see if an object is inside the array like so:
arr=[{name:\'Dan\',id:2}]
and I want to check like so:
<
Arrays do have includes() function, but for your case, you have to do using some():
some()
arr.some(e => e.id === 2 && e.name === "Dan") arr.some(e => e.name === "Dan")