智能照明系统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/95/9595aacd2d1e562706195dbb742...

24 lines
511 B

var contain = require('./contain');
var toArr = require('./toArr');
exports = function(arr) {
var ret = [];
var args = toArr(arguments);
var argsLen = args.length;
for (var i = 0, len = arr.length; i < len; i++) {
var item = arr[i];
if (contain(ret, item)) continue;
var j = 1;
for (; j < argsLen; j++) {
if (!contain(args[j], item)) break;
}
if (j === argsLen) ret.push(item);
}
return ret;
};
module.exports = exports;