智能照明系统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/3f/3fc77a4824d9f429b98d61707a0...

20 lines
398 B

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