为什么 lodash _.includes 没有发现我的数组包含它正在检查的对象?

Why is lodash _.includes not finding that my Array contains the Object it's checking?

https://jsfiddle.net/leongaban/yLv6t5am/

LoDash _.includes

var searchedTickers = [
    {
        ticker: 'GOOG'
    }
]

var ticker = { ticker: 'GOOG' }

var found = _.includes(searchedTickers, ticker);

console.log(found);

^ 目前告诉我 found = false。应该是 true.

lodash 不比较对象的属性值;它比较它们是否是同一个对象(内部引用)。

此代码将打印 true,因为它是同一个对象:

var ticker = { ticker: 'GOOG' }

var searchedTickers = [ticker]

var found = _.includes(searchedTickers, ticker);

console.log(found);