_.contains is not a function

来源:互联网 发布:js判断chrome版本 编辑:程序博客网 时间:2024/05/17 09:16

在使用lodash的时候报_.contains is not a function,这是因为从lodash V3.10.1开始,将去掉contains函数,改用includes。

可以换为:_.contains()->_.includes()

0 0