isClass check

node v4.9.1
version: master
endpointsharetweet
function isClass(v) { return typeof v === 'function' && v.prototype.constructor === v; } function hello(){} isClass(hello)
Loading…

no comments

    sign in to comment