JS 判断一个数组是否包含某个值

如下判断:

return arrValues.indexOf('Sam') > -1
原文地址:https://www.cnblogs.com/spring87/p/6684167.html