$ npm install is-class-hotfix
Check if function is an ES6 class.
npm install is-class
bower install is-class
var isClass = require('is-class');
class F {}
function G() {}
console.log(isClass(F)); // true
console.log(isClass(G)); // false
npm test
MIT
© 2010 - cnpmjs.org x YWFE | Home | YWFE