智能照明系统APP-本地串口
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 
LightingSystemApp-serial/.svn/pristine/7e/7ef9eeb8bc2fbab28230f2ef5df...

12 lines
327 B

var idxOf = require('./idxOf');
var isStr = require('./isStr');
var isArrLike = require('./isArrLike');
var values = require('./values');
exports = function(arr, val) {
if (isStr(arr)) return arr.indexOf(val) > -1;
if (!isArrLike(arr)) arr = values(arr);
return idxOf(arr, val) >= 0;
};
module.exports = exports;