Initial commit
This commit is contained in:
commit
dfbb21800b
5220 files changed
+368059
No files matched your search
+9
@@ -0,0 +1,9 @@
|
||||
'use strict';
|
||||
|
||||
var functionName = require('function.prototype.name');
|
||||
|
||||
var anon = functionName(function () {});
|
||||
|
||||
module.exports = function isAbstractClosure(x) {
|
||||
return typeof x === 'function' && (!x.prototype || functionName(x) === anon);
|
||||
};
|
||||
Reference in new issue
Block a user