Sha256: 9f2f1e3c0b09f80f62ca318e6a1e65391125a2a9aa95ac3eb78455863717647d
Contents?: true
Size: 244 Bytes
Versions: 61
Compression:
Stored size: 244 Bytes
Contents
'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); };
Version data entries
61 entries across 61 versions & 3 rubygems