+ 1
In javascript whenever I compare two similar objects it returns a false on the other hand comparison of two similar arrays retur
2 ответов
+ 3
How exactly are you comparing the objects? I believe this can help:
https://www.sololearn.com/learn/JavaScript/1132/
+ 1
Use
if(JSON.stringify(obj1)===JSON.stringify(obj2))
alert("Similar objects);