Apply for Zend Framework Certification Training


There are Two  way to compare Two objects if we have the same key value, is using JSON.stringify.

Another way is using Lodash isEqual function


const obj1 = {name:'Rajesh',address:'faridabad'};
const obj2 = {name:'Rajesh',address:'faridabad'};
Json.stringify(obj1) === JSON.stringify(obj2);

< Predefined functions of javascript Last >

Ask a question

  • Question:
    • Answer:
      {{answer.blog_answer_description  }}
    Replay to Question

Back to Top