智能照明系统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/8e/8ebdc45fe037bab91aafbe41521...

21 lines
372 B

3 years ago
var filter = require('./filter');
exports = function(arr, cmp) {
cmp = cmp || isEqual;
return filter(arr, function(item, idx, arr) {
var len = arr.length;
while (++idx < len) {
if (cmp(item, arr[idx])) return false;
}
return true;
});
};
function isEqual(a, b) {
return a === b;
}
module.exports = exports;