js判断数组是否包含某个值
1.indexof
array.indexOf();返回正整数或-1
2.includes()
array.includes()返回true,false
3.findeIndex()
array.findeIndex()返回false和数组下标
转载:https://www.cnblogs.com/zaijin-yang/p/12196811.html
array.includes
1.indexof
array.indexOf();返回正整数或-1
2.includes()
array.includes()返回true,false
3.findeIndex()
array.findeIndex()返回false和数组下标
转载:https://www.cnblogs.com/zaijin-yang/p/12196811.html
array.includes