Compare full objects (all properties)

I use  compare-object alot but want a function that would compare all matching properties