I need to check if an object is logically in an array, when two objects are logically equal (same as equals in Java), it will be considered as "in" the array
While I am using $.inArray of jQuery to check the code below, it retuns -1, indicating that the copied is not being processed as "in" the array.
var a =[{value: "G27", title: "G27"}]; $.inArray({value: "G27", title: "G27"},a);
The above is just an example. Is there an easy way for general cases to achieve this
source share