Message from JavaScript discussions

June 2018

— Search for GeoIP

— 

Guys i have array of objects when i am comparing object which is same as object in array its returning false any idea why?
ps: not using strict check

— 

a = [{a:3},{b:3}]
b = {a:3}
console.log(a[0] == b)




returns false

— Because it's another object instance;

— a = {}, b = {} not equal

— You can b = {a:3}, a = [b, {b:3}] and it will match

— Wat

— a[0] == b

— Like in his code..

— No

— Https://lodash.com/docs/4.17.10#isEqual

— But yee, depends on what he is trying to do..