blob: 503200dc5d5dfcf0aa38a86671546b51f4385385 [file] [log] [blame]
'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);
};