—
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
— Https://lodash.com/docs/4.17.10#isEqual
— But yee, depends on what he is trying to do..