ZoomInfo interview question

how would you compared two objects in Javascript