This commit is contained in:
14
node_modules/licia/toSrc.js
generated
vendored
Normal file
14
node_modules/licia/toSrc.js
generated
vendored
Normal file
@@ -0,0 +1,14 @@
|
||||
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;
|
||||
Reference in New Issue
Block a user