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