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

20 lines
295 B

3 years ago
var isNil = require('./isNil');
exports = function(fn) {
if (isNil(fn)) return '';
try {
return fnToStr.call(fn);
} catch (e) {}
try {
return fn + '';
} catch (e) {}
return '';
};
var fnToStr = Function.prototype.toString;
module.exports = exports;