Does inArray() not work for custom objects?

Does inArray() not work for custom objects?

Does it call the object's equals method? I am trying to make sure only one date object for the same date is in an array.

Thanks in advance!