智能照明系统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/d1/d1fc69e447bd38932af3cdffac6...

13 lines
314 B

var safeCb = require('./safeCb');
var each = require('./each');
exports = function(obj, predicate, ctx) {
var ret = [];
predicate = safeCb(predicate, ctx);
each(obj, function(val, idx, list) {
if (predicate(val, idx, list)) ret.push(val);
});
return ret;
};
module.exports = exports;