I have an array & a literal object like this
var arr = [{a: 1}, {a: 2}, {a: 3}];
var e1 = {a: 1};
I want to implement a function (ex: containsObject(e1, arr)
) what should return true in this case.
Please teach me the way without overriding base classes like Array.prototype.indexof