I\'m attempting to find an object in an array using Array.prototype.includes. Is this possible? I realize there is a difference between shallow and deep compari
Array.prototype.includes
you can use find to returns the value of the this element
const array = [{a: 'b'}]; array.includes(array.find(el=>el.a==='b'));