智能照明系统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/1a/1a655a2473183f2ae26c33eff01...

17 lines
361 B

var safeCb = require('./safeCb');
var keys = require('./keys');
exports = function(obj, predicate, ctx) {
predicate = safeCb(predicate, ctx);
var _keys = keys(obj);
var key;
for (var i = 0, len = _keys.length; i < len; i++) {
key = _keys[i];
if (predicate(obj[key], key, obj)) return key;
}
};
module.exports = exports;