How To Compare Two Objects In Typescript