Pregunta de entrevista de Adaptive Financial Consulting

How to compare if two object equal in JS?